MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading and Strategy Testing Forum

Screenshot
USDJPY, W1
Real
Signal LinesSignal Lines Try product
Signal Lines
Author: Fredik
Analysis of the Main Characteristics of Time Series Analysis of the Main Characteristics of Time Series Subscribe to signal
Chemik86
38.22%, 13 821.59 USD
Volatility Indicator
Volatility
Author: GODZILLA

// PositionType() access in Signal module (wizard)

To add comments, please log in or register
P_Cherry
45
P_Cherry 2012.07.12 16:25

Hi,

I am learning and writing my first Wizard Signal module and have trading signal depending on position type.

Is it necessary to create object to excess PositionType() within LongCondition() code part?

   CPositionInfo     m_position;

m_position.PositionType()


Or can I access it via pointer LongCondition(CPositionInfo* position)?

Thanks for advice

Peter


/
To add comments, please log in or register