Three bar strategy

asnavale

Well-Known Member
Based on Three Bar method the following Cash scrips are for going Long:

ASAHIINDIA
HONAUT
ITC
SAIL
SUPPETRO

The following are for Shorting (Sell):

ATFL
CRISIL
CROMPGREAV
EDUCOMP
FKONCO
FOrTIS
GRAPHITE
GREAVESCOT
PeNINLAND
PFC
StErLINBIO
TATACOMM

-Anant
 

Vertigo_1985

Well-Known Member
Hi Johnnybhai and seniors,

I found another code on this 3 inside bar.

HTML:
Cond1 = Close > Ref( Close, -1 ); 
Cond2 = High < Ref( High, -1 ) AND Low > Ref( Low, -1 ); 
Cond3 = Close < Ref( Close, -1 ); 

SetTradeDelays( 1, 1, 1, 1 ); 

Buy = Cond1 AND Ref( Cond2, -1 ) AND Ref( Cond1, -2 ); 
BuyPrice = Open; 
Short = Cond3 AND Ref( Cond2, -1 ) AND Ref( Cond3, -2 ); 
ShortPrice = Open; 

Sell = Cover = False; // exits only by stops
My question does this code work as the code seems confusing as it does not check whether 1st and 3rd bar have the same color or not...Could somebody verify?
Hi,
I want to add exit time condition to it, like exit before 315 pm. As we have have set sell=cover=false, how can we do it ?
 

sr114

Well-Known Member
Hi,
I want to add exit time condition to it, like exit before 315 pm. As we have have set sell=cover=false, how can we do it ?
for the exit condition , use the following

CloseAtEnd = ParamToggle("Close Positions EOD", "No|Yes");
mktclose=Param("Market Close Time",151500,000000,235959,1 );

Sell=IIf(CloseAtEnd==False, (Sell Condition) OR TimeNum() > mktclose);

Cover=IIf(CloseAtEnd==False, (Cover Condition) OR TimeNum() > mktclose);

PlotShapes(IIf(CloseAtEnd==True AND TimeNum() > mktclose , shapeStar, shapeNone),colorGold, 0,L, Offset=-15);
rgds
subroto
 

suktam

Active Member
Hi
Vikas.. Good strategy......
My confusion is regarding 3rd candle means is it close above or below 1 st candle high or low
or
same color of 1 st candle full fill the condition for buy sell ???

Regards... wait for your reply
 

XRAY27

Well-Known Member
VIKAS has given this method in 2013 and people started fresh queries in 2015 in btw no updations :rofl::rofl::lol::lol:
 
Last edited:

Similar threads