Amibroker AFL code for Bottom Trader

MarketSecrets - Learn To Trade Like a Pro

Amibroker AFL code for Bottom Trader:

Script:

//——————————————————————————
// Formula Name: Bottom Trader
// For more scripts, visit: www.marketsecrets.in
//——————————————————————————

P = ParamField(“Price field”,-1);
Periods = Param(“Periods”, 20, 2, 100, 1 );
Width = Param(“Width”, 2, 0, 10, 0.05 );


Filter = L < BBandBot( P, Periods, Width );

P = ((H + L + C) / 3);
R1 = ((2 * P) – L);
S1 = ((2 * P) – H);
R2 = ((P – S1) + R1);
S2 = (P – (R1 – S1));

AddTextColumn( FullName(), “Name”);
AddColumn( Close, “Close” );
AddColumn (RSI(), “RSI”,1.2);
AddColumn( V, “Volume”,1 );
AddColumn( r2, “R 2”, 1.2);
AddColumn( r1, “R 1”, 1.2);
AddColumn( P, “Pivot”, 1.2);
AddColumn( S1, “S 1”, 1.2);
AddColumn( S2, “S 2”, 1.2);

Download File

error: Content is protected !!