Forum

Why is the macd different from other platforms

Hello, I have a problem on Metatrader the macd is different from another platform i use trading view and its messing up my ea

EA is buying when candle hasn't formed yet help

*** how can i only buy @ the close not when the candle is still forming? trade.Buy(1.00,NULL,Ask,Ask-2.5 , Ask+3.5,"buying"); ***

I need a broker that allows me to trade Emini s&p 500 future contracts

Hey what i said up top i need a broker that allows me to trade /es. can someone help me

help with invalid stops error i dont get it

So i try to place an order with mql5 it gives me an error 2020.07.10 13:25:30.158 2020.01.03 17:32:36 CTrade::OrderSend: market buy 1.00 @EP sl: 3016.35 tp: 3022.55 [invalid stops] double SL = (Ask - 2.4 ); double PT = (Ask + 3.8 ); if (price > above) { if (runningmacdsignal > 0 ){

need help with adding a buy order and sell order when condition meets

I've been trying to check my open trade if there is an open trade then dont trade , i only want one trade to be open, I also wanna create a buy order but it doesnt work it gives me i "2020.07.09 18:11:45.128 2020.01.03 17:36:15 CTrade::OrderSend: market buy 0.01 @EP sl: 3017.35 tp: 3023.35 [

need help finding 200 day ma and 5 day ma and macd

hey guys i've been creating a strat im trying to find the 200 day sma and 5 sma and the macd so here's my code but im not getting the values im getting weird static values like 15 for the macd double twosma = iMA(NULL, 3, 200, 0,MODE_SMA,PRICE_CLOSE); // double ninesma = iMA(NULL, 3, 9