Forum

Unsure why this code isn't placing orders

Looking for feedback on this code. As of right now it complies but it doesn't execute trades in the strategy tester . Any help is much appreciated double SARValue; double SimpleEma; double Candle; double Candle2; void OnTick () { if (( OrdersTotal ()== 0 ) && (SARValue > Bid) &&(Candle <

Heiken Ashi candles

is it possible to look at certain heiken ashi candles in mql4. I tried calling the indicator and then using the i close function for the specific candles but using i close it take the default candle sticks, im not to familiar with buffers so im not sure if that is thee solution. Any help is much

Benefits of a VPS

What are the benefits from running your ea on a vps

Calling custom indicators (Super Trend)

Hi im wondering how I would go about calling a super trend indicator. Beneath is the code I have, im not sure how to set the parameters timeframe, period, and multiplier. When I put the corresponding numbers i get the error - name expected. Any help is much appreciated. double SuperT = iCustom = (

Ichimoku Cloud

Hi im having some trouble coding with the ichimoku cloud I want to only use the up and down kumo simulating the cloud, Im not sure how to go about this. void OnTick () { //signal Variable string signal = "" ; //indicators double Cloud = iIchimoku ( NULL , 0 , 9 , 26 , 52

MACD CrossOver

Im trying to add 2 MACD indicators to my chart. One being 12, 18, 1 and the other being 5, 10, 1. I can add one of them but not the other. Also this is only happening on desktop, on mobile it adds these just fine. Any insight on this is greatly appreciated

EA wont take Sell Trades

Not sure what the problem is hoping another set of eyes will help. Thanks //+------------------------------------------------------------------+ //| FRIDAY.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //|

EA closes trades immediately after opening

Here is the code ive used before but for some reason it will not place trades now. //+------------------------------------------------------------------+ //| Cortana.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //| https://www.mql5.com |

Mobile notifications

Im getting my alerts on my pc and i enabled them for my phone and put in the code but im not getting them on my phone. Also when I test the notification it works. Any ideas on what this is

SL and TP system

Hi I'm wondering how I can make a TP and SL system based on EMA crosses I attached my code it compiles but does not work. Any help is much appreciated. if (GetTotalOpenTrades() < MaxTrades) { if (FastEMA > SlowEMA){ LongSetup = True; }