Disliked{quote} But, with the TP as 0, it shouldn't caused the entry to be triggered in the middle of the IB instead at the breakout and the SL to be few pips away instead of the full range of IB right?Ignored
https://www.forexfactory.com/thread/...alances-and-ea
Again, the TP is the SL multiplied. That being said:
- There will always be a SL (RISK MANAGEMENT)
- The SL is always going to be the opposite side of the break out. Example: if price breaks above the IB high and a long position is taken the SL will always be the IB low and if price breaks below the IB low and a short position is taken the SL will always be the IB high.
- Explanation of TP calculation: TP is the SL multiplied. So again as explained in the image that I sent you, let's set an example where the pips from the position to the SL is 10 pips. If the "Take_Profit_Percent" in the EA is set to 100 then the TP will be 100% of the SL. So in this case:
10 pips (SL) x 1 = 10 pips.
If the "Take_Profit_Percent" in the EA is set to 200 then the TP will be 200% of the SL.
10 pips (SL) x 2 = 20 pips.
If the "Take_Profit_Percent" in the EA is set to 0 then there will be an error. Why? In math something x zero equals zero.
10 pips (SL) x 0 = 0 pips. This will throw off an error and no position will be taken because the EA will not be able to calculate a TP.
The "Take_Profit_Percent" in the EA has nothing to do with where an entry is made, it's only designed for you to calculate your take profit levels. That's why it's labeled as "Take_Profit_Percent".
Hope that helps clear things up a little.