Forums ProRealTime English forum ProOrder support Stoploss not responding with Time Frames Reply To: Stoploss not responding with Time Frames

#126343

Thanks for the quick relpy,

I simplified the code before loading it here, sorry that I missed a parameter. for EntryBuffer  I used 5 or 10, but it can be any number.

I guess I was not clear in my question.

the code in the 15 time frame should be executed even if the trade is active. so if the trade is active and goes against me I don’t want to wait till it reaches the old SL but I want to reset the SL to a lower level then it was originally (for short trades for example) and if the market continues to go against me then the trade should exit on the new SL and re-enter to the opposite direction (in this case go long)

the “SET STOP LOSS LongStopAt” is ignored (It seems) which is why I added a hack of exiting.

Yes Lines 32 and 38 were commented out. but I do want to remove the IF clause 29-31 and 35-37 as they are just a hack since re-setting of the SL did not work for me

 

I hope it is clearer now

Thanks again,