I have searched for this subject in the forum but didn't manage to solve this riddle...:
using two-time frames where the entry condition provided by the second,
which makes usually several entries, but I want to use just the first entry and ignore others from that signal.
all this of course until the entry condition meets again maybe on the same day.
using Renko chart (I don't think it matters...).
the code:
Code: Select all
inputs: Price( Close ), Length( 14 ), OverSold( 30 ) ;
variables: RSI20(0,data2);
RSI20 = RSI(Price, Length )data2;
condition2 = RSI20[1] < RSI20 and RSI20[1]<RSI20[2] and RSI20[1]<OverSold ;
if condition2 then
Buy ( "RsiLE" ) this bar at close ;