Experts: XP Forex Trade Manager MT5 - page 2

 
Hi Marzena,

Thanks for quick reply!

How to resolve datatype conversion error?

'xp-trade.mq5' xp-trade.mq5 1 1
'PositionInfo.mqh' PositionInfo.mqh 1 1
'Object.mqh' Object.mqh 1 1
'StdLibErr.mqh' StdLibErr.mqh 1 1
'Trade.mqh' Trade.mqh 1 1
'OrderInfo.mqh' OrderInfo.mqh 1 1
'HistoryOrderInfo.mqh' HistoryOrderInfo.mqh 1 1
'DealInfo.mqh' DealInfo.mqh 1 1
possible loss of data due to type conversion xp-trade.mq5 175 83
possible loss of data due to type conversion xp-trade.mq5 175 120
possible loss of data due to type conversion xp-trade.mq5 180 102
possible loss of data due to type conversion xp-trade.mq5 181 104
possible loss of data due to type conversion xp-trade.mq5 193 90
possible loss of data due to type conversion xp-trade.mq5 199 100
possible loss of data due to type conversion xp-trade.mq5 202 92
possible loss of data due to type conversion xp-trade.mq5 208 71
possible loss of data due to type conversion xp-trade.mq5 208 107
possible loss of data due to type conversion xp-trade.mq5 211 92
possible loss of data due to type conversion xp-trade.mq5 217 64
possible loss of data due to type conversion xp-trade.mq5 217 100
possible loss of data due to type conversion xp-trade.mq5 217 189
possible loss of data due to type conversion xp-trade.mq5 223 89
possible loss of data due to type conversion xp-trade.mq5 229 100
possible loss of data due to type conversion xp-trade.mq5 233 89
possible loss of data due to type conversion xp-trade.mq5 238 71
possible loss of data due to type conversion xp-trade.mq5 238 107
possible loss of data due to type conversion xp-trade.mq5 241 91
possible loss of data due to type conversion xp-trade.mq5 247 64
possible loss of data due to type conversion xp-trade.mq5 247 100
possible loss of data due to type conversion xp-trade.mq5 247 189
possible loss of data due to type conversion xp-trade.mq5 259 105
possible loss of data due to type conversion xp-trade.mq5 262 93
possible loss of data due to type conversion xp-trade.mq5 269 91
possible loss of data due to type conversion xp-trade.mq5 274 111
possible loss of data due to type conversion xp-trade.mq5 281 104
possible loss of data due to type conversion xp-trade.mq5 284 93
possible loss of data due to type conversion xp-trade.mq5 291 91
possible loss of data due to type conversion xp-trade.mq5 296 111
sign mismatch xp-trade.mq5 373 18
code generated 1 1
0 errors, 31 warnings, 18503 msec elapsed 1 32


Regards,
SAthish
 

Hi, if I input BEActivation:40, BELevel:0, and TSStart:80, TSStep:1, TSDistance:30, does this mean that the BE is automatically cancelled and replaced by the Trailing Stop once 80 pips is reached? Do I need to have TSendBE set to true or false in this scenario? 


Thanks,

RF

 
Sathish Collection #:

Hi

This is not an error, just a warning, and it has no effect on the Manager's operation.

Have a nice day👍📊

 
@Marzena Maria Szmit #: This is not an error, just a warning, and it has no effect on the Manager's operation. Have a nice day👍📊

Please note, that even compile warnings should be fixed. They are potential sources of run-time errors or other compilations, especially for "possible loss of data due to type conversion".

Having a clean compilation report goes a long way to show good coding practices.

 

Hi Marzena,


Just trying out your EA and it is very helpful!


Question: If I have multiple trades open for the same currency pair the EA manages, can I manually override the take profit for a specific trade within that pair to close it to a particular level?

For example, I've set the EA to take profit at 20 pips, but sometimes I want to override only a specific trade for the same pair at 50 pips.

Can this be accomplished? If so, please advise.


Thank you once again for an excellent EA!

Mickey S.

 
Hi

We’ve added the new file, made updates, and also new features:

- Improvements
- Trailing and Breakeven functions work separately
- Additional feature for checking positions
- Reduced the number of notifications that appear

Have a nice day👍📊

 

Hi

Description of functions and their operation:

BEActivation: determines the profit threshold, in points, at which the Break Even function will activate and adjust the stop loss to the break-even level. For example, if BEActivation is set to 20 pips, the Break Even function will activate when the trade reaches a profit of 20 points, securing the position at a risk-free level.

BELevel: specifies the precise level, in points from the entry price, to which the stop loss (SL) will be moved once the BreakEven is activated. For instance, if BELevel is setpoints, the SL will be adjusted to a position 2 points above the entry price, locking in a small profit.

TSStart: This parameter defines the distance in points from the entry point (the order's opening price) at which the Trailing Stop will be activated. For example, if you set TSStart to 20 points, your Trailing Stop will be activated when the profit on the position reaches at least 20 points.

TSistance: determines how many points from current price (Ask or Bid) the Trailing Stop adjust SL price each time the market moves in the direction favorable to the trade. If TSDistance is set to 10 points, the Trailing Stop will trail SL 10 points from the current price.

TSStep: determines how often, in points, the Trailing Stop will be adjusted in the direction of profit. For instance, if you set the TS Step to 5 points, your stop loss (SL) will only be adjusted to a new level if the price moves at least 5 points beyond the current SL.

TSendBE: if this parameter is active, the maximum level to which the SL can be moved is defined by the BELevel (SL will be blocked on this level even if the price still goes in profit). 

Tips:

Onlycurrentpair is a function that only supports the pair on which XP Manager is running. If you want Manager to support other pairs, set it to false.

The lines displayed in StealthMOde are removed only when the trades are closed by those lines (sl or tp). If the trades is closed by any other method (manually or by other EAs), the lines wont' be deactivated then. You can always remove the objects by deleting them from the objects list of the chart (open the list of objects, show all objects by pressing "List all" and remove old lines).

Have a nice day👍📊