stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

HELP TO CHECK IF PRICE IS INSIDE KUMO
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5271
Page 1 of 1
Author:  mrithuns [ Sat Sep 09, 2017 4:42 am ]
Post subject:  HELP TO CHECK IF PRICE IS INSIDE KUMO

Hi,
Can you please assist on coding to check if the Price is inside kumo.

I would like to pass the array of symbols to this method and check if the Symbols Current Price is inside the kumo in the below Time Frames M30, H1, H4,D1.
If the current price is within the kumo, that symbol will be removed from the array.
for a Given Symbol, The check needs to be done in three Different Time frames and Return yes/no.
If yes, the symbol will be removed from the original Array and rest all will be retained.


Code: Select all

bool CheckKumo(string symbolName, const ENUM_TIMEFRAMES tf)
{
	
	double senkouA1 = NormalizeDouble(iIchimoku(symbolName,tf,InpIchimokuA,InpIchimokuB,InpIchimokuC,MODE_SENKOUSPANA,lastBarIndex),Digits),
      senkouA2 = NormalizeDouble(iIchimoku(symbolName,tf,InpIchimokuA,InpIchimokuB,InpIchimokuC,MODE_SENKOUSPANA,lastBarIndex+1),Digits),
      senkouB1 = NormalizeDouble(iIchimoku(symbolName,tf,InpIchimokuA,InpIchimokuB,InpIchimokuC,MODE_SENKOUSPANB,lastBarIndex),Digits),
      senkouB2 = NormalizeDouble(iIchimoku(symbolName,tf,InpIchimokuA,InpIchimokuB,InpIchimokuC,MODE_SENKOUSPANA,lastBarIndex+1),Digits);

//  LOGIC TO CHECK IF THE CURRENT PRICE IS INSIDE KUMO. (HELP REQUIRED).


}
All times are UTC Page 1 of 1