How do you do this: if (marketposition == long)?? anyone? - page 2

 

I have a few other questions...

1) How do you get the PIP size of a symbol? Aka, I'd like to know that 0.0001 = PIP size of EUR/USD, and 0.01 for USD/JPY. I want my strategy to detect it, so I don't have to hard-code it into the strategy.

2) Is there a "debug" window anywhere that I can output text to, to help me debug my strategy?

 
behealed:

I have a few other questions...

1) How do you get the PIP size of a symbol? Aka, I'd like to know that 0.0001 = PIP size of EUR/USD, and 0.01 for USD/JPY. I want my strategy to detect it, so I don't have to hard-code it into the strategy.

2) Is there a "debug" window anywhere that I can output text to, to help me debug my strategy?

1) https://docs.mql4.com/predefined/variables/Point

2) https://docs.mql4.com/common/Print and then view it in the journal

V

 
behealed:

1) How do you get the PIP size of a symbol? Aka, I'd like to know that 0.0001 = PIP size of EUR/USD, and 0.01 for USD/JPY. I want my strategy to detect it, so I don't have to hard-code it into the strategy.

Not trivial. See long discussion here -> https://www.mql5.com/en/forum/124692.
Reason: