because of ongoing error-messages in log when trading with script strategy (when target or stop is hit then the oco-order causes the messages because one order is still in process ...) I´m thinking if it would be maybe better to use ATM to handle the stops and targets in a trade. After going over the SampleATMStragegy and before trying to modify my scripts to use ATM I have 2 questions please:
a.) in the SampleATMStrategy there is in line 98 "you can change the stop price". Its clear to me what this means but I do not understand why this is in the script, from my understanding this will work from the ATM to use the stopmove as set in the ATM parameters. Or does the stopmove from ATM parameters not work when the ATM is called from a script strategy. If this does not work then there is the derived question what is the sense of calling an ATM from a script?
b.) my error messages in my current "normal" script-strategies (with SetStopLoss and SetProfitTarget in script and not with an ATM) occur - from my understanding from replies of NT-support - when eg in fast markets the target2 is filled and same moment the stop2 should be moved to breakeven (error message because the position is closed and nothing there anymore to move). My question is now when I have the same settings in the ATM parameters of the ATM that is called by a script will then be the same error-messages as I have with a script-strategy with setstoploss and setprofittarget or is there a difference in handling of stop and target orders from a script calling an ATM (with stopmoves in ATM). Because if its the same then I dont need to modify my scripts by adding ATM.
Thank you!
Tony
Comment