amine_chourou wrote:
Hi,
Well ... thanks a lot for the attached file but it makes the situation worse as I don't get what are you trying to achieve with that

Somehow knew I'll complicate things...
Try to explain little bit more:
amine_chourou wrote:
I made a quick test and I noticed that the strategy is not stopped because of the TP condition but due to the second condition that you implemented (RSI<=31 or RSI >=69)
Idea is to have two conditions for stop:
1. stop if RSI value is 31/69 -for taking profit & avoiding opening another positions which will be in loss in most cases because trend reversal
2. stop if TP reached - for same reasons as above
Now "tricky" part...
amine_chourou wrote:
So if you need to implemented a condition related to TP reached you have to think this way:
A position is closed with profit in this example is a position that has a status FILLED then CLOSED with positive P&L, whatever the P&L is as long as it is positive.
Noticed some disadvantage in "TP stop" blocks because these blocks are connected with "onCandle" main block through "defaultPeriod" variable (1 Day). In reality, TP could be reached in middle of the day and because "onCandle" block, stop strategy block would not be reached!? Because of that, think connect these blocks with "TradeEvent" will be much better solution.
But, don't know how to do it. So Your knowledge will be much appreciate to me.
amine_chourou wrote:
If the exact level of 500pips of profit is essential for you then you should use the variable "ProfitLoss in pips" instead of "Default Take profit" (you can find it in rcs_test1 main position variable : P&L in pips) and I wouldn't use the P&L in pips to be exactly = to your target because in some cases there might be positive slippage. ">=" would do a better job ..
Didn't understood well (maybe because of my English), in IFs blocks already have "rcs_test1.ProfitLoss In Pips" variable so I need little more explanations of that?
Sorry for big post, but I think that could be interesting for other VJF users to improve their strategies also.
Regards