Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need Help. Creating forex trading script

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

    Need Help. Creating forex trading script

    Hi everyone. im really new to ninja trader and im really liking it. But im having a bit of a problem setting stop losses and profit targets in the step by step strategy maker. i only get (percent, ticks, and price) i tried it all but dosent seem to work.

    i measured the percent change of the amount i want the strategy to follow but it dosent work.
    i tried using the price option and set it at i.e 0.0015 for 15 pips but it doesnt work.
    i tried ticks i.e 15 ticks but its not the same as pips.

    Can you guys plz help me out ???

    N.B : The strategy i want to code is really straight forward. its a 15min scalping technique using double bollinger bands the inner one set at 1 standard deviation and the outer one 2.

    Entry Long : If the last 2 bars are under the BB1 and 3rd closes above BB1 (inner with 1 standard deviation)

    Entry Short : If the last 2 bars are Above the BB1 and 3rd closes under BB1 (inner with 1 standard deviation)

    Added rules : Only open Long if price is above 50 EMA & Only open Short if price is Bellow 50 Ema.

    If anyone could help me write the code i would be really gracious. I

    #2
    Hello ForexTrader77, and thank you for your question.

    I would like to ask, what is your Tools -> Options -> Data -> Quote Currencies (FX) in setting listed as? Typically, it's true that one tick is equal to one pip. However, if this is set to half pip or tenth pip, this will be modified accordingly.

    You can see what the tick size is, in currency units, with this code

    Print(String.Format("My forex tick size is {0:C}", TickSize));

    Please let us know if there is any other way we can help.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    22 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    18 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    6 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Working...
    X