Help Needed from Seniors.

#1
Hello seniors,

help needed for some correction in below Exploration

1) i need (Buy = 1 and Sell = 0) Condition added

2) Close open high low volumes (columns repeating again)

3) Buy & Sell both conditions needed as Exploration code.


(Please post full code) - Thanx you



Code below:clap:

Code:
Buy = Close < BBandBot( Close, 20, 2 )*0.98;
AddColumn( Close, "Close " );
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume " );

Sell = Close > BBandTop( Close, 20, 2 )*1.02;
AddColumn( Close, "Close " );
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume" );

Sell = 0;

Cover = 0;


Filter = Buy OR Sell ;

AddColumn(Buy,"buy",1.2);
AddColumn(Sell,"sell",1.2);


Waiting for help
 
#2
Re: Help Needed.

Code:
Buy = Close < BBandBot( Close, 20, 2 )*0.98;

AddColumn( Close, "Close " );
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume " );


Sell = Close > BBandTop( Close, 20, 2 )*1.02;
//AddColumn( Close, "Close " );
//AddColumn( Open, "Open " );
//AddColumn( High, "High " );
//AddColumn( Low, "Low " );
//AddColumn( Volume, "Volume" );

Sell = 0;

Cover = 0;


Filter = Buy OR Sell ;

AddColumn(Buy,"buy",1.2);
AddColumn(Sell,"sell",1.2);


:) Happy
 
#3
Re: Help Needed.

Code:
Buy = Close < BBandBot( Close, 20, 2 )*0.98;

AddColumn( Close, "Close " );
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume " );


Sell = Close > BBandTop( Close, 20, 2 )*1.02;
//AddColumn( Close, "Close " );
//AddColumn( Open, "Open " );
//AddColumn( High, "High " );
//AddColumn( Low, "Low " );
//AddColumn( Volume, "Volume" );

Sell = 0;

Cover = 0;


Filter = Buy OR Sell ;

AddColumn(Buy,"buy",1.2);
AddColumn(Sell,"sell",1.2);


:) Happy


Happy ji, thanx you but i m able to explore only Buy Scripts.

Sell scripts not coming in scan.

Pls test it once.

Thanx you in advance
 
#4
Re: Help Needed.

Happy ji, thanx you but i m able to explore only Buy Scripts.

Sell scripts not coming in scan.

Pls test it once.

Thanx you in advance
You have used, Sell = 0; in your code, this suppresses all sell signals . . .
Comment out the line, if you want to also display sell . . .

Code:
Buy = Close < BBandBot( Close, 20, 2 )*0.98;
Sell = Close > BBandTop( Close, 20, 2 )*1.02;
Filter = Buy OR Sell ;
AddColumn( Close, "Close " );
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume " );

AddColumn(Buy,"buy",1.2);
AddColumn(Sell,"sell",1.2);
for the last 2 lines of above code you can also try . . .

Code:
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar );

or

AddTextColumn(WriteIf( Buy, "Buy", "Sell"), "Signal",1.2,colorwhite,IIf( Buy, colorBlue, colorRed));

:) Happy
 
Last edited:
#5
Re: Help Needed.

You have used, Sell = 0; in your code, this suppresses all sell signals . . .
Comment out the line, if you want to also display sell . . .

Code:
Buy = Close < BBandBot( Close, 20, 2 )*0.98;
Sell = Close > BBandTop( Close, 20, 2 )*1.02;
Filter = Buy OR Sell ;
AddColumn( Close, "Close " );
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume " );

AddColumn(Buy,"buy",1.2);
AddColumn(Sell,"sell",1.2);
for the last 2 lines of above code you can also try . . .

Code:
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar );

or

AddTextColumn(WriteIf( Buy, "Buy", "Sell"), "Signal",1.2,colorwhite,IIf( Buy, colorBlue, colorRed));

:) Happy


Happy ji....:clapping:


Thanxs a lot Again.

Your last 2 option was too good.

Gr8 work:rofl:
 

Similar threads

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?