Hi all
My EA will not activate a buy pending order, now I'm assuming the problem might be with the Open predefined variable, if you know the problem please assist.
I think the problem might be with the if statements
if(Range>Filter&&Candle[0].open>MAClose&&Bid>MAClose)
if(Range>Filter&&Candle[0].open<MAClose&&Bid<MAClose)
I don't receive any errors when checking my logs and I'll make sure to use debugger for this problem
Made changes to the "iMA" from double to int still no changes
double MAClose=iMA(Symbol(),0,PeriodIndicator,0,MODE_LWMA,PRICE_CLOSE);
int MAClose=iMA(Symbol(),0,PeriodIndicator,0,MODE_LWMA,PRICE_CLOSE);
ChatGPT....
Please learn how to code, its useless to try to fix ChatGPT-Code, its gibberish, and nobody wants to fix it...
First of all, for what language is it? MQL4 or MQL5?
Then, if you place your cursor on a function and press F1, you receive help by reading the documentation.
ChatGPT....
Please learn how to code, its useless to try to fix ChatGPT-Code, its gibberish, and nobody wants to fix it...
First of all, for what language is it? MQL4 or MQL5?
Then, if you place your cursor on a function and press F1, you receive help by reading the documentation.
It's not ChatGPT Dominik I've been coding since last year MQL4 & MQL5. The code I posted is MQL5 you can check on the first post.
It's not ChatGPT Dominik I've been coding since last year MQL4 & MQL5. The code I posted is MQL5 you can check on the first post.
iMA is moving average indicator, symbol means it can run on any pair you drop it on e.g. FX, Indices, Commodities & stocks etc. The 0 (current period) is the indication of the timeframe, Period Indicator is a period of the indicator which 7, the next 0 is MA shift, the next one is the mode of the MA there's 4 of them I choose the LWMA for my strategy, the last one is MA price calculations which is price close.
Why is so hard to believe when you can see that its not ChatGPT.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all
My EA will not activate a buy pending order, now I'm assuming the problem might be with the Open predefined variable, if you know the problem please assist.