Forum

Same EA on multiple charts (different currencies) + Conditions (to open an order) achieved same time in multiple charts. Problem: Send only one order and not one order per chart

Hello everyone, I decided to write my problem here hopefully someone help me because I am literally blocked. I spent a lot of time without any good results. As written in the title, I have the exact same EA (MQL4) run on multiple charts (different currencies). The EA send an order when X conditions

Query about opening positions with same points difference

Hello everyone, I have successfully coded a script that opens positions with a difference of 150 points. My EA opens a buy position every time "Ask>=Price of last buy opened +150_Points" while (Ask>=B1+(X*PositionB)* _Point && Buy1==1) { PositionB=PositionB+ 1 ; OrderSend (

Query about storing indicator value over a period of time

Hello everyone, I am having a hard time writing the perfect code for what I want. Basically I have the following scenario: Candle 1: 12:00:00: Indicator value=5 12:03:24: Indicator value=5.2 12:04:59: Indicator value=5.5 Candle 2: 12:05:00: Indicator value=6 12:09:59: Indicator value=8 Candle 3

Problem order modify pending order

Hello, I am using MT5 to program my EA. I am trying to trail a pending order however I struggled a lot since I am using MT5 and not MT4.. Many of previous solutions for previous problems didn't work with my query.. My code for trailing a sell position is: #include <Trade\Trade.mqh> CTrade TradingCP;