Simple question onsyntax
Created at 08 May 2013, 10:18
Simple question onsyntax
08 May 2013, 10:18
Sorry for newbie question, but I don't know jow to write command on current tick(bar). For example: I need a stoploss when last value touches (is below) ema20 (meaning it closes position right away). What I can achieve at the mom is that position is closed when last value is below ema20 in the previous bar (T-1). Time lag is to much for me at the mom.
Thanks for help.
cAlgo_Fanatic
14 May 2013, 11:19
You can close the position once the price crosses below the ema20. Below is an example that creates one position on robot start and if the ema20 crosses above the close the position is closed.
@cAlgo_Fanatic