Forum

A downloaded indicator and automated trading ea

Hi, A have a downloaded form mql5 indicator which work on chart. So I don't have a code. There is possibility to make a ea which will be put orders when a indicator generate a signal? indicator genereate signal buy/sell and I am almost every time too late because it work fine only when is session

How to change a code to set up a start lots?

double getLots(double lt) ( double marginrequired = MarketInfo(Symbol(), MODE_MARGINREQUIRED); double freemargin = AccountFreeMargin(); if(freemargin > (marginrequired * lt)) { return(lt); } double result = freemargin / marginrequired; result = MathFloor(result * 10) / 10;

How to compare last tick prices with current price

Hi, Iam beginnger and looking form information how to put into code in command if() a latest price (not last close bar price) - last tick or few ticks prices. I need it to compare with currents price to start open order sell/buy. Best regards

FIFO rules in closing pending order after time

Hi, I'am a beginner in programming ea's. I start with strategy which open few pending order but after while are too much not actually pendings orders. For now I using a scripts like : --------------------- for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--) { if ( OrderSelect