Forum

Help with funtion..

Hi all. I have written a program for practice as I am learning. I have written and re-written it for the last 2 days and am stuck. The function call is to initialise the first two points of a iRSI swing. It should look for the highest and then the lowest low. If we forget about the highest high for

Learning to code, need help with a while operator.

hi I am learning to code. The code below is supposed to look and see if the last closed candle was above a RSI high and if not it will look at the next candle back and see if that was and if not the next and so on and so on. it mark the candles that are above the high and all the ones that don't

EA opening too many trades

//+------------------------------------------------------------------+ //| Newbie programming 3.2.mq4 | //| Copyright 2018, MetaQuotes Software Corp. | //| https://www.mql5.com |

Modify Order not working

Hi, I have been over this over and over and cannot see what the problem is. It keeps compiling //--Adjust stops ----------------------------------------------------------------------// void AdjustStops() { for(int Orders =OrdersTotal() -1; Orders>=0; Orders--) { if

Simple counter producing number i do not want

Hi, I am learning to code, wrote a simple counter as practice. it is just supposed to Print 1,2,3,4,5,etc but the count is coming out as 6363,6364,6365 etc. Can someone tell me what I have done wrong. Thank you in advance. //+------------------------------------------------------------------+ //|

Wrote indicator call EA, it works,but returns EMPTY_VALUE

Hi, I am learning to code. Wrote this EA to call an indicator. It works fine. But, in 'Print' on a down trend, iCustom_1 returns an EMPTY_VALUE and on an up trend, iCustom_2 returns an EMPTY_VALUE. Could someone tell me what I've done wrong. Thank you for the advice in advance. Harvey_Trading

EA to mark sma crossover is not working correctley.

Hi, first time posting in here. Can someone tell me I where I am going wrong on this EA as I cannot figure it out. This would be a great help to my learning to code. EA should be marking SMA cross over but is not. I cannot figure it out. #property copyright "Copyright 2018, MetaQuotes Software