high low array

 

i want last 3 array values buts its not working......


10,9,8,7,6,5,4,3,2,1,0 

Discover new MetaTrader 5 opportunities with MQL5 community and services
Discover new MetaTrader 5 opportunities with MQL5 community and services
  • www.mql5.com
MQL5: language of trade strategies built-in the MetaTrader 5 Trading Platform, allows writing your own trading robots, technical indicators, scripts and libraries of functions
Files:
 
Anas Wansa :

i want last 3 array values buts its not working......


10,9,8,7,6,5,4,3,2,1,0 

Looked at your code - a bunch of incomprehensible operations.

Please explain in your own words: "What exactly do you need"?

 
Vladimir Karputov #:

Looked at your code - a bunch of incomprehensible operations.

Please explain in your own words: "What exactly do you need"?

Thank you for the reply,
         I want to get last candles10 high low values, enter to array then get values from the last numbers. like simple moving average indicator cross over.
 
Anas Wansa # :
Thank you for the reply,
         I want to get last candles10 high low values, enter to array then get values from the last numbers. like simple moving average indicator cross over.

I do not understand.

To get the last N (N=count) OHLC values, you need to use the code:

   MqlRates rates[];
   ArraySetAsSeries(rates,true);
   int start_pos=0,count=6;
   if(CopyRates(Symbol(),Period(),start_pos,count,rates)!=count)
      return;

What do you need next?

 
Vladimir Karputov #:

I do not understand.

To get the last N (N=count) OHLC values, you need to use the code:

What do you need next?

This what I I want this screen shot will show what this code does.

So ints sim draw tow lines such highest highand lowest candle low in the perticular amount of candle.so I want get previous low candle highest and low value.

This pictures has been edited for the explainnation,those are white squares,text and arrows.

 
Anas Wansa # :

This what I I want this screen shot will show what this code does.

So ints sim draw tow lines such highest highand lowest candle low in the perticular amount of candle.so I want get previous low candle highest and low value.

This pictures has been edited for the explainnation,those are white squares,text and arrows.

Did I understand correctly?


Files:
 
Anas Wansa # :

but there need be  four lines and double values  in the comment like  1 last 10 high,low, 2 previous (high and low candles before this ten candle) 10 high low.

 thank you for your support..

I did not understand anything :). Draw a picture please.

 
Vladimir Karputov #:

I did not understand anything :). Draw a picture please.

i just insert a screen shot

 
Anas Wansa # :

i just insert a screen shot

Where is the picture??? Where are the explanations? Please depict your idea in the form of a picture or explain in detail: what do you want?

 
Anas Wansa #:

i just insert a screen shot

Wrong screenshot
 
Vladimir Karputov #:

I did not understand anything :). Draw a picture please.

Oh I am sorry for the wrong screenshot.

I am high light with a red that what i want.

Reason: