the minimum amount of time between buy and sells is on hour, regardless the program is buying and selling within the hourly candlesticks, how to fix?
-
You were previously asked to use the code button. Why didn't you?
-
int SARDefinition = iSAR(_Symbol, PERIOD_H1, 0.02,0.2);
You were previously told what is wrong with that. You still haven't fixed it.
-
You want to know why things take an hour?
int Data = CopyRates(_Symbol, PERIOD_H1,0,3,PriceArray); int SARDefinition = iSAR(_Symbol, PERIOD_H1, 0.02,0.2);
Because that is your data source.
***
Insert the code correctly! Use the button !
-
You were previously asked to use the code button. Why didn't you?
-
You were previously told what is wrong with that. You still haven't fixed it.
-
You want to know why things take an hour?
Because that is your data source.
1. did not use this type of interface before.
2. I know some js, python, and so on, how can an indicator be called for OnInit()? got the error not declared when called on in OnTick().
3.I fixed that error, I wanted it to take an hour.
Insert the code correctly! Use the button !
okay
And please correct your code: remember, in MQL5, the indicator handle MUST BE CREATED ONLY ONCE, and this is done in OnInit !!!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
***