Forum

Long and short term position sizes

I would like to ask about ... how to decide the relationship between long and short term position sizes? Long term positions naturally have larger stops ... 1. So ... should I reduce the position size for long term trades for equalizing the maximum loss percentages with short term positions? 2. Or

Please help to a newbie about two functions

1. I could not understand when _stopFlag is true. I have a trivial code for seeing its effect, but nothing happen with the following code when I try to remove EA from the chart. How can I see its effect, could you please give me an example? void OnTick () { if ( IsStopped ()) { Print

Formatted strings

The specifiers for data sizes l and ll are the same with l32 and l64? Is there any difference between them? Can I use them interchangeably

Please help for the "array out of range" error

Hi ... My code is the following ... and I'm getting an error saying that "array out of range in '1.mq5' (66,33)" It is the hand-numbered row in the code. How can I correct this error? Thanks a lot. //+------------------------------------------------------------------+ //|

Deviation for pending orders

For the platform of my broker, the execution type for market orders is instant execution . In this case, should I identify a deviation for a pending order? Thanks

Symbols in log files

What are the meanings of first column (two uppercase chars at the beginning of every row) and second column (a single digit, I can see only zeroes in my logs) in the log files

Position Identifier

My demo terminal is not setting a position identifier for positions ... and naturally it is absent also for deals and orders on the history tab. What can be the reason? Thanks