I have written the following two codes in easy language but I am having difficulties writing the same code in EFS.
This first one just drawa a high and low line on chart
Inputs: NoBars(13);
Value1 = Highest ( High, NoBars);
If Value1 = value1[1] and Value1[1] = Value1[2] and Value1[2] = Value1[3] then plot1(Value1,"Recent High") ;
Value2= Lowest(Low,NoBars) ;
If Value2=Value2[1] and Value2[1] = Value2[2] and Value2[2] = Value2[3] then plot2(Value2,Recent Low") ;
The Second one just colour codes bars to what I have defined as a rangy market
Inputs: RangeLength(15), RangeSize(30);
Condition1 = Highest(High,Rangelength) - Lowest(Low,Rangelength) < RangeSize Points ;
Value1= High;
Value2 = Low;
If Condition1 then
Plotpaintbar(Value1,Value2,"Rangy", Magenta) ;
This first one just drawa a high and low line on chart
Inputs: NoBars(13);
Value1 = Highest ( High, NoBars);
If Value1 = value1[1] and Value1[1] = Value1[2] and Value1[2] = Value1[3] then plot1(Value1,"Recent High") ;
Value2= Lowest(Low,NoBars) ;
If Value2=Value2[1] and Value2[1] = Value2[2] and Value2[2] = Value2[3] then plot2(Value2,Recent Low") ;
The Second one just colour codes bars to what I have defined as a rangy market
Inputs: RangeLength(15), RangeSize(30);
Condition1 = Highest(High,Rangelength) - Lowest(Low,Rangelength) < RangeSize Points ;
Value1= High;
Value2 = Low;
If Condition1 then
Plotpaintbar(Value1,Value2,"Rangy", Magenta) ;
Comment