Detect Last Candle Close Price ---> pending buy + X pips above/below - page 2

 

nvm, figured it out: if (closeprice > openprice)

good day to you all

 
smoknfx:

mr raptoruk,

i did read the documentation..

double iClose( string symbol, int timeframe, int shift)

notice that there are three parameters:

parameter #1: the symbol name.

parameter #2: the timeframe.

parameter #3: THE SHIFT.

NOTICE IN MY CODE THAT I POSTED ABOVE THAT I USED A ZERO FOR THE TIMEFRAME (I AM AWARE THAT THAT MEANS TO USE THE CURRENT TIME FRAME OF THE CHART)...

NOTICE MY POSTED EXAMPLE ABOVE USES A "1" IN THE SHIFT PARAMETER AND THAT IS WHY WE WERE DISCUSSING THE MEANING OF THERE BEING A "1" IN THE SHIFT PARAMETER.

your contribution is greatly appreciated.

kind regards,

zero/.

My post was quite clearly in answer to johnny72, that is why I quoted his post . . where he said "And the 0 means?" so I answered his direct question with a suggestion, "Read the documentation", and a direct answer.

So what exactly is your issue ?

And please DO NOT SHOUT, there is no need, I find it offensive.

 
RaptorUK:

My post was quite clearly in answer to johnny72, that is why I quoted his post . . where he said And the 0 means? so I answered his direct question with a suggestion, "Read the documentation", and a direct answer.

So what exactly is your issue ?

i dont know, i am obviously knew here.

captain boomerang/.

 
johnny72:

nvm, figured it out: if (closeprice > openprice)

good day to you all

Hi Johnny72,  I am actually looking for something similar but it will be above/below the highest/lowest price of the candle instead of closing price.

Can share your script? Thanks

 
kaiten: Can share your script? Thanks
  1. Do you really expect an answer since the poster hasn't been here for five years?
  2. Perhaps you should read the manual especially Timeseries and Indicators Access - MQL4 Reference and Predefined Variables - MQL4 Reference
 
smoknfx #:


example:

double price;

price=iClose("EURUSD",0,1);

Hi Experts,

Myself Rushall and i want help, to plot USDJPY last iClose  on my EURUSD chart

 
FUNDXN #:

Hi Experts,

Myself Rushall and i want help, to plot USDJPY last iClose  on my EURUSD chart

That's ridiculous!

USDJPY price would be well off of the EURUSD chart.