Fractional Trades + Breakeven Stop Loss

Forums ProRealTime English forum ProOrder support Fractional Trades + Breakeven Stop Loss

Viewing 4 posts - 1 through 4 (of 4 total)
  • #134614

    Hi there’s two issues I’m having, once does the code I’m using below have a built even break even stop loss in it somewhere? For some reason it keeps closing trades they hit 0 and I’m really not sure why.

    An secondly whenever I’m trading 1 point + on anything the trailing stop, trailing step and take profit levels populate on IG as per my instructions but for some reason when I say buy 0.1 instead of buy 1.0 it never populates any trailing stop, trailing step and take profit levels. So basically it’s just an open trade which can obviously get really expensive on things like the lumber market.

    I set it to 0.1 and nothing came up on IG at the time it was moving hundreds of points in minutes where the lumber market is bigger. An I had no trailing stop no nothing but a live trade. An it’s happened on smaller markets like the French market yesterday, it didn’t give me any trailing stop, take profit etc. So I had to exit the trade at a loss as my stop and take profit is set by the ATR and I didn’t want to guess the ATR and work out values while live trading something moving fast. This also happened with the Australian market once even when I had a buy 1.0 order but it happens pretty much every time with 0.5 star orders and anything under 1.0.

     

    #134615

    At line 6 you are setting  TP at 0, because TKPROFIT is defined below that line and only when some conditions are met.

    I suggest adding this line 4:

    or something similar.

    1 user thanked author for this post.
    #134686

    Thanks for your help, it’s definitely really appreciated. I’m going to add that to the code now. Do you have any idea why if I try to buy 0.1 of lumber for example the trailing stop, trailing step and take profit won’t appear on IG? but if I order 1.0 of anything then 99% of the time it’s fine?

    #134716

    I have no clue about that, sorry!

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login