Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

need help for trading system

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    need help for trading system

    My Name is Marino Oddone and I am interesting in develop my own strategy on Ninja Trader platform..Below my strategy in visual basic..I would like to know if somebody can help me to export the trading strategy in Ninja Trader platform.
    The system include 3 indicator in a chart 5 minute periods

    Cross moving average
    Moving average simple 12 period of the close (fast MA)
    Moving average simple12 period of the median price (slow MA)
    Slow Stochastic
    Slow sthocastic of 14 period with %K=3 and %D=5 (all simple MA)
    Overbought level=65
    Oversold level =35
    Momentum
    Momentum of the close of 26 periods

    ENTRY BUY SIGNAL :When FastMA cross up SlowMA and Momentum>0 and %K cross overbought level I will buy (stop loss 15 points,stop profit 15 points)
    EXIT BUY SIGNAL : When one of the 3 conditions to buy falls(FastMA cross down SlowMA or Momentum<0 or %K cross %D)

    ENTRY SELL SIGNAL :When FastMA cross down SlowMA and Momentum<0 and %K cross oversold level I will sell (stop loss 15 points,stop profit 15 points)
    EXIT SELL SIGNAL : When one of the 3 conditions to sell falls(FastMA cross up SlowMA or Momentum>0 or %K cross %D)

    In my programm there is also sound and alert to advise the operator that a buy or sell is imminent.
    If you cannot help me please let me know how can I do it by myself,which programm or manual I have to download to programm my trading system.
    If is possible have this system on the platform,after I chweck it in the demo I will suscribe I will open an account with strategy runner platform.

    {Edit this section to your preferences.}

    {Control Error}

    Barnum:= BarCount();
    Err:= (tp1=0) or (tp2=0) or (mtPr=0) or (K=0) or (D=0) or (stochsl=0);

    {Moving Averages}

    ShortMA:= mov(pr1,tp1,mTp1);
    LongMA:= mov(pr2,tp2,mTp2);

    {Slow Stochastic Oscillator}

    StK:= ((C-LLV(L,K))/(HHV(H,K)-LLV(L,K)))*100;
    StDK:= Mov(StK,stochSl,MtK);
    StDD:= Mov(StDK,D,DMt);
    StochUp:= 65;
    StochDown:= 35;

    {Momentum}

    Mom:= mPr - Ref(mPr,-mtPr);
    zeroline:= 0;




    {Do NOT change the NAMES of the Variables below.
    If you Changed The NAMES of Indicator1 or Indicator2,
    you will have to change them below.}

    {Define Final Trade Entry/Exit Criteria}

    LongEntryCond1:= ShortMA>LongMA;
    LongEntryCond2:= Cross(StDK,StochUp);
    LongEntryCond3:= Mom>zeroline;

    LongExitCond1:= Cross(StDD,StDK);
    LongExitCond2:= ShortMA<LongMA;
    LongExitCond3:= Mom<zeroline;

    ShortEntryCond1:= ShortMA<LongMA;
    ShortEntryCond2:= Cross(StochDown,StDK);
    ShortEntryCond3:= Mom<zeroline;

    ShortExitCond1:= Cross(StDK,StDD);
    ShortExitCond2:= ShortMA>LongMA;
    ShortExitCond3:= Mom>zeroline;

    LongEntrySetup:= LongEntryCond1 AND LongEntryCond2 AND LongEntryCond3;
    LongExitSetup:= LongExitCond1 OR LongExitCond2 OR LongExitCond3;

    ShortEntrySetup:= ShortEntryCond1 AND ShortEntryCond2 AND ShortEntryCond3;
    ShortExitSetup:= ShortExitCond1 OR ShortExitCond2 OR ShortExitCond3;

    Regards Marino

    #2
    Hi Marino, welcome to the NinjaTrader support forums!

    You strategy posted below can be realized in our Strategy Wizard with a point and click approach, here's an overview with a video - http://www.ninjatrader-support.com/H...rdScreens.html

    You could then later 'unlock' the generated code and modify it further if needed in the NinjaScript programming editor, here's an example - http://www.ninjatrader-support.com/H...verview39.html

    Your alert can also be added - http://www.ninjatrader-support.com/H...eV6/Alert.html It can be found under the Misc category when you define your actions in the wizard.

    We have an upcoming weekend course on these topics on March 21 / 22, more info can be found here - http://www.ninjatrader.com/webnew/ev...evelopment.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X