Originally Posted By: txesmi
you might start here

On what this is supposed to help?
This post was moved? Where it was before?
Originally Posted By: tuuPaul
hello all, how are you? i wrote a code but i have a problem.
If i write "TakeProfit=400*PIP" in run function, every bar of period it examines that profit reachs 400PIP. But if i write "TakeProfit=400PIP" in "if(MACD<0) statement" it can not work. For example, at 307th bar MACD indicator is less than 0 and profit is 350PIP. On the other hand at 307th bar it met "if statement". In my opinion, at 307th bar "if statement" was fulfilled and "TakeProfit" will take value of 400PIP so if any bars after 307th bar profit will reach 400PIP it must directly take 400PIP. Unfortunately, it can not work. What about your opinion?

Is this a question about Zorro or about strategy development? I do not know why jcl do not replied.