Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 456
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is so for BOOL type. That is, for a bool from an older version of MQL4. This is not true for a single-byte bool. An overflow will occur if the value is greater than zero.
I wonder why then.
Does it compile without errors or warnings?
I wonder why then.
compiles without errors or warnings?The assignment operator must be overloaded for the bool type. It monitors the overflow and if more than 1, it assigns and returns true.
In studio at warning level 4 there are often warnings when trying to insert some illogical type into a logical expression. Or vice versa, when applying a logical type in arithmetic operations.
The assignment operator must be overloaded for the bool type. It monitors the overflow and, if greater than 1, it assigns and returns true.
In studio at warning level 4, there are often warnings when trying to insert some illogical type into a logical expression. Or vice versa, when applying a logical type in arithmetic operations.
It would be more logical to
to issue a warning and leave it as in the old version without
is not exactly true, but the gist is correct.
Actually: zero corresponds to false, and any other value other than zero corresponds to true
Well, I'm not a programmer after all...
There is account number 1 - five-digit with a min.lot 0.01 and step 0.01 (build 584); account number 2 - 4-sign with a min.lot 0.1 and step lots of 0.1 (build 584) and account number 3, just the same as the number 2, but the terminal build 509.
And there is a stop loss trawl:
Why on account #1 the stoploss is trawled normally, but on accounts #2 and 3 "error 130"??? Although the logic is subverted, but it works in one case...
Well, I'm not a programmer after all...
There is account number 1 - five-digit with a min.lot 0.01 and step 0.01 (build 584); account number 2 - 4-sign with a min.lot 0.1 and step lots of 0.1 (build 584) and account number 3, just takoe same as number 2, only terminal build 509.
And there is a stoploss trawl:
Why is stop loss on account 1 trailing normally, but accounts 2 and 3 show "Error 130"? Although the logic is subverted, but it works in one case...
The question itself implies that the problem is a 5-digit or 4-digit account. Looking at the code. Where is the pipPoint variable defined and what does it equal? That is most likely where the problem lies.
The question itself suggests that the issue is about a 5 or 4 digit count. I'm looking at the code. Where is the pipPoints variable defined and what does it equal? That's most likely where the problem lies.
I defined pipPoints = MarketInfo( Symbol(), MODE_POINT) in the init;
I increased the MaxStop value and the trawl should change in increments with larger ones, but it changes in increments of 1 point, at least it starts trawling at 4 digits... I'll still need to modify the logic, I need adjustable pitch.
Hello!
The question is as follows. I have a Heiken Ashi Smoothed indicator https://www.mql5.com/ru/code/7930.
What changes should I make to the code of the indicator to be able to attach this indicator on a five-minute chart on a higher timeframe, for example on a thirty-minute or one-hour timeframe?
Thank you.
I've asked a similar question - how to apply an indicator from the weekly chart to the H4 chart. I pounded on several forums . and here too, but did not get anything better than to prescribe the size of a large TF-m in the code for a smaller one, no one suggested. although if your indicator has simple logistics and takes for its calculation of simple bar calculations, it is possible. if you can text the code and a screen on n1 a studio with their explanations .
and so the indicator should draw a vertical line on the bar on which the price closes in the middle of the bar.....