Created
February 24, 2017 13:03
-
-
Save marketcalls/6314e1c7131f43aa3646a0dab4bf74e8 to your computer and use it in GitHub Desktop.
Open == High AND Open == Low Exploration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Coded by Rajandran R | |
//Author - www.marketcalls.in | |
//Date : 21st FEB 2017 | |
_SECTION_BEGIN("Open == High AND Open == Low Exploration"); | |
DOpen = TimeFrameGetPrice( "O", inDaily, 0 ); // gives you Todays Open price. | |
DHigh = TimeFrameGetPrice( "H", inDaily, 0 ); // gives you Todays High price. | |
DLow = TimeFrameGetPrice( "L", inDaily, 0 ); // gives you Todays High price. | |
newday = Day() != Ref(Day(),-1); //check for the start of the day | |
opencond = newday AND (DOpen == DHigh OR DOpen == DLow); | |
Filter = opencond ; | |
colorstatus = IIf(newday AND DOpen == DHigh,colorRed,IIf(newday AND DOpen == DLow,colorGreen,Null)); | |
AddColumn(IIf(newday AND DOpen == DHigh,DHigh,Null),"Open==High",1.2,colorWhite,colorstatus); | |
AddColumn(IIf(newday AND DOpen == DLow,DLow,Null),"Open == Low",1.2,colorWhite,colorstatus); | |
_SECTION_END(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment