I have the trix indicator and I want it to trigger buy and sell signals for my EA. //+------------------------------------------------------------------+
I've got this function which i don't know why it doesn't work. I want the EA to place a buy order is last closed sell trade was a loss. double LastS() { double ProS = 0 ; for ( int i=
My EA is good on detecting trends but i want to improve the results. The results looks like a mountain.For example , the EA gains PIPS in the first half of the year but losses all the gains in the second half. This may be because during the second
Hi I want to create 4 random numbers at every tick . These could be either 1,2,3,4,5. So at every tick formula creates 1 random number e.g 1 etc. How do you do this in MQL4? Thanks
Hi I'm trying to calculate senkansen A and senkansen B of the ichimoku system. I know that the Senka is the average of Kinjunsen and tenkansen shifted 26 periods ahead. Now for the purpose of the EA all I want is the ea to buy when the current
I'v created this function that will allow the EA to place another order when a current buy order exceeds 50 pips. The function works on testing but problem is it places the order too early for example when the first order has moved only
Hi I have got a code but it doesn't seem to work properly. The EA opens 1 buy and 1 Sell trade of the same pair. I want the code to calculate the total profit of the two orders and return the result. I have got this function . double Money() {
Hi I want my EA to open only one trade per day. I've got a code that counts historical trades and gives a yest or no if a trade was opened,. However i'm a bit stuck. Can someone help. Thanks. for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--)
Hi Please help I want the ea to open a buy order when profit exceed 20> I've coded this, see below but the code is unreliable( sometimes it works,sometimes it doesn't). Any suggestions on how it could be improved? if (( OrderSelect
Does anyone knows how to calculate maximum draw down for a specified number of bars for a given currency in mql4? For example, i'm looking at the last 200 1 minute bars, where the currency pair did on average increase. I want to
Hi, I've got just a simple question on how to tell when the current price is above the cloud. senkaspan A =iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANA,1); senkanspan B= =iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANB,1); Now as I understand, for current
Hi all, I'm running an EA on 3 different charts and i'm wondering if someone knows an mql4 code that automatically closes all trades when a set total profit ( pnl) is reached. Is it possible? Please help. Thanks
Hi please help, I'm looking for a mql4 formula for a red and green candle for the heiken ash indicator. I'm currently using an icustom for the HA indicator but this this slows the system especially during testing. Grateful if someone could give
Please help with my spread filter. I'm using ECN 5 digit broker but when I use this code, the ea doesn't seem to read the spread correctly. On my EA I do normally put an extra 0 eg 500 for a take profit of 50, just as an example ( I've tried to
Hi please help. I have 3 strategies and I want my EA to open positions in a loop as follows. The buy strategies are X , Y and Z. If condition X is satisfied, place buy order, then wait until that order is closed. Once order X is closed( in
Hi all , I'm new in trading and would like to know the buffer numbers for the traders dynamic index fo red line yellow line green line upper VB line lower vb line for example what is xx value below for the red line? double red_line