Forum

iHighest/iLowest

Hello I would like to use the iHighest in my study and would like to know if this statement is valid please. double bMaxHigh = iHigh [ iHighest ( NULL , PERIOD_H1 , MODE_HIGH, 10 , 1 )]; if (SellExists && Low[ 1 ] > bMaxHigh) { CloseThisLoser(); } Thank you kindly

Trading the 15m TF - Checking open trades and closing them if it is negative after a 1HR bar close

I wish to check my open trades (from the 15m TF) and close trades that are negative (after that trade was executed) after the 1 HR bar closes. Any help is very much appreciated thank you. Here's what I have so far: void checkCloseOnTime() { double HourBarClose=iClose(mySymbol, PERIOD_H1, 1); for(int

Running a Script from an EA

Hello, I'm new at programming and trying to learn. One thing I am trying to do is run a script from within an EA. I have searched in every way I can think of and can find no information or examples of this so before I assume it's not possible I wanted to ask here where the pro's are. For instance

Help With TimeCurrent function please

Hello... I am new here and need to know where I can read how to use this interface ie, pasting code into the text etc. ? Anyways I'll try to ask the question the best I can without the use of copy and paste functions. I am a newbie coder so please bear with me. What I am trying to do is take an