Simple Coding Help - No Promise.

LOVEENAJYOTHI

Well-Known Member
Dear friend trash,
u have been a source of inspiration n motivation :) n u r always right abt the code :) but i am not able to notice whats wrong with the sell variable
everything looks fine in exploration n on chart
can u plz kindly tell me where my mistake is
Awaiting ur reply
Thank you :)
Dear Friend VijKrish (Ya VijKrish, NOT Romeo whatever)
Study the diff b/w Sell and SellPrice ,then perhaps u will understand whats wrong with ur "Sell"
 
Dear friend vsreeram77,
use this code :happy:
Code:
// Buy on 3rd day with given condition :)
Buy = C> Ref(C,-1) AND Ref(C,-1) > Ref(C,-2) ;

// Sell on open of 4th day :)
Sell =  ValueWhen(Ref(Buy,1),O);

Buy = ExRem (Buy,Sell);
Sell = ExRem (Sell,Buy);

Filter = Buy OR Sell;
AddColumn(IIf(Buy,C,Null),"Buy",1.2);
AddColumn(IIf(Sell,O,Null),"Sell",1.2);
:happy:
Thanks Lot sir, for the kind help
 
Dear friend vsreeram77,
use this code :happy:
Note -- Symbol must have volume data or else nothing will be shown in exploration :happy:
Code:
// Volume is 10 times more than yesterday's volume
// and current price is higher than yesterday's close
Cond = V>Ref(V,-1)*10 AND C> Ref(C,-1);

Filter = Cond;
AddColumn(IIf(cond,1,Null),"Condition",1,colorBlack,IIf(cond,colorLightBlue,Null));
:happy:
Thanks Lot sir
 

cloudTrader

Well-Known Member
Dear friend Loveenajyothi,
thank u for pointing me in the right direction :happy:
n i m really not Vijkrish :( ( i dont even know who Vijkrish is ) :pompus:
u have mistaken me for someone else :oops:
Dear friend Romeo , seems Loveenajyothi has mistaken you for Vijkris , another very active member of Traderji. I also became curious to ask Loveenajyothi about this as Vijkris still visits the forum regularly.

Anyways, keep on with your good work !!

BEST.
 

Similar threads