Originally Posted By: Sundance
Are you sure about your TakeProfit? I think you wan't the price at 8 o'clock. So it think TakeProfit = priceOpen(); !?


Same mistake. TakeProfit is profit target distance in price units. The trade is closed when the trade profit has reached this amount. So, you shall not add any price to it.

But things like this should work:

TakeProfit = (priceClose() - priceOpen()) + 50 * PIP;

or maybe some other combination of the signs, types of prices. Obviously I haven't followed (or understood) the strategy description completely, but the above should give some idea.

From what I understand you need to resolve the equation to give you TakeProfit from the current price, and if you need to have it against some other price (possibly from the past bars) then you need to find the difference between those two prices first and then add the wanted profit target. Something like that.

jcl must be laughing often, looking at us amateurs fighting the basics. wink