Forum

Markers (arrows) not shown when opening/closing positions

MT4 EAs shows markers when opening/closing positions take place. MT5 does not show them. Am I missing something? Shouldn't this be automatic? The markers are shown in backtesting but not in live trades I do not want to create an object for this... please help

Sending orders to ECN

Just wondering if someone already worked in the code to send an order with stops to an ecn. can you please share it? I do not seem to make it work on my end the idea is to send the order without any stops, verify that the deal is executed and then modify it adding the stops

The new concept of position, orders and deals is too confusing. Need some help!

An order becomes a deal. A long deal open or increases a position. A second long deal increases the position since in MT5 there is only one position per pair. If I use POSITION_PRICE_OPEN (Position open price) from https://www.mql5.com/en/docs/constants/tradingconstants/positionproperties which open

max money at risk per trade

Hi, I want to write a script to limit the money at risk per trade. I want to limit my risk at n% of my equity. I found some scripts in the forum but still have some questions.. I found: lot = NormalizeDouble(AccountFreeMargin() * Risk * 0.01 * MarketInfo(Symbol(), MODE_TICKSIZE), 2);//last 2 changes

looking for a 4 digit broker

Hi all, If you trade using a 4 digit broker, can you share your broker's name with me? I want to test some code but it seems that all the brokers I try use 5 digits now :) Thanks

mql4 best practices

Hi all, Where can I find mql4 best programming practices or templates that help to to design clean/easy to use EA? e

running EA or custom indicator every 10 sec

Hi there, I need help on this. I want my custom indicator to be tick independent and run every 10 sec. I looked at the forums and tried : int start() { while( !IsStopped() ) { WindowRedraw(); Sleep(10000); // my code } return(0); } And also tried: int init() { while( !IsStopped() ) { start();

automatic import of tick info from csv to metatrader as an offline chart

Hi there, I need to import external tick information (pricing) from a csv file to metatrader as an offline chart. I searched the forums and now I know is possible. My problem is that I want the offline chart to be updated automatically every 5 minutes with new info in the external csv file. Is this