According to the documentation both methods are used to "check conditions to open a long/short position".
Whereas the result of the [Long|Short]Position methods returns an integer between -100 and 100, the other simply returns a boolean.
In my understanding as it is right now, I can use both methods to signal to the EA that an open/short position should be opened.The "only" difference is that the results of the [Long|Short]Position methods should be interpreted as a degree of certainty which should be compared to a threshold value in order to perform a long/short order.
Am I correct in this interpretation or completely wrong?
LongCondition - CExpertSignal - Base classes for Expert Advisors - Strategy Modules - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Hi,
I'm currently in the process of developing my first EA. So far so good I would say.
However, I'm not a 100% sure about the difference of the following methods of the CExpertSignal class.
- [Long|Short]Condition
- CheckOpen[Long|Short]
According to the documentation both methods are used to "check conditions to open a long/short position".
Whereas the result of the [Long|Short]Position methods returns an integer between -100 and 100, the other simply returns a boolean.
In my understanding as it is right now, I can use both methods to signal to the EA that an open/short position should be opened.The "only" difference is that the results of the [Long|Short]Position methods should be interpreted as a degree of certainty which should be compared to a threshold value in order to perform a long/short order.
Am I correct in this interpretation or completely wrong?
Any insights would be highly appreciated.
With regards, M.