I want to set profit and loss in tick value as input statement and set them as initial profit and stoploss range.
Can anyone please help me to finish the statement?
Code: Select all
inputs : profitrange(20), lossrange(10); / 20 ticks for profit and 10 ticks for stoploss
if ....................then / order statement
buy;
setprofittarget( ); / set profit tick value in the blank
SetStopLoss( ); / set stoploss tick value in the blank