Simple Coding Help - No Promise.

ping said:
Hello,

How about this please?

Buy if PRICE is above the Simple MA50 days and RSI(14)> 50
Sell if PRICE is below the Simple MA50 days (deviation 0.2) and RSI(14)< 50
(deviation 0.2) - what is this deviation?
sr114
Ping is talking about the Standard Deviation StDev( MA(50), 0.5 );
 
Shruti

It works ,we have to put in the parameters for 'm' and 'n' as shown in the screenshot.:D


Amit ji,

when changed the parameters to 3 & 5... i m getting buy-sell signals but they are not proper.

Signals are visible but while exploration .. its blank.

Need to edit anything in code???

Kindly help.

Thanx you.. (m using amibroker 5.4)
 

hmp

Well-Known Member
I would like to have TTTB afl indicator. It is available on wisestocktrader but not that i want,I would like to have like code provided in stockmaniac.
Regards
 
I would like to have TTTB afl indicator. It is available on wisestocktrader but not that i want,I would like to have like code provided in stockmaniac.
Regards
On his web page, he is giving for FREE [:clap:] after you pay him 3200 Rs for one month trial [:clap:] [:clap:] Gotcha!!!!

http: slash slash www dot stockmaniacs dot net slash blog slash tttb-pro-amibroker-afl-set-divergence-tttb-accuracy

We have coded TTTB System for Amibroker and released TTTB 5 amibroker afl pack for our subscribers. TTTB Trading System is now available FREE for our Trend Blaster subscribers. To subscribe instantly through credit cards click here.
 
Last edited:

amitrandive

Well-Known Member
Amit ji,

when changed the parameters to 3 & 5... i m getting buy-sell signals but they are not proper.

Signals are visible but while exploration .. its blank.

Need to edit anything in code???

Kindly help.

Thanx you.. (m using amibroker 5.4)
Not sure ,about the code.Have just added param to it as requested.
Please post screenshots for more clarity.
 
Tinchu76

here is the afl

screen shots


Code:
//critical input from Trash [ASF]
dt = DateTime();
grid_day = (Day()!=Ref(Day(),-1)); 

DH = TimeFrameGetPrice( "H", inDaily, 0 );
DL = TimeFrameGetPrice( "L", inDaily, 0 );

Plot( DH, "\nDay Hi", colorGreen, ParamStyle( "Style", styleLine | styleThick  ) );
Plot( DL, "\nDay Lo", colorRed, ParamStyle( "Style", styleLine | styleThick  ) );
Plot(C,"",colorDefault,64);

 
DHcond = H == DH;
DLcond = L == DL; 

hi=HHV(V,grid_day);
lo=LLV(V,grid_day);
vol_col= IIf(dhcond, colorDarkGreen,IIf(dlcond,colorRed,colorBlack));

Filter = V > MA(V,15);//DHcond OR DLcond; // whatever cond u like u may put

SetOption( "Nodefaultcolumns", True );
AddTextColumn( Name(), "Symbol", 1 );
AddColumn( DateTime(), "Date/Time", formatDateTime );
AddTextColumn( Interval(2), "tf", 1 );
AddColumn( IIf( DHcond, ValueWhen( DHcond, dt ), Null ), "HHV DT", formatDateTime, colorWhite, colorDarkGreen, 120 );
AddColumn( H, "High", 1.2, IIf( DHcond, colorWhite, Null), IIf( DHcond, colorDarkGreen, colorWhite) );
AddColumn( IIf( DLcond, ValueWhen( DLcond, dt ), Null ), "LLV DT", formatDateTime, colorWhite, colorRed, 120 );
AddColumn( L, "Low", 1.2, IIf( DLcond, colorWhite, Null), IIf( DLcond, colorRed, colorWhite) );
AddColumn( C, "Close", 1.2 );
AddColumn( V,"Volume",1.0,colorWhite,vol_col);

//AddColumn(OI,"Open Interest",1.0); */

GraphXSpace=15;




Sr114:

When ever time permits pls reply on followings:-

In the attached afl pls explain the role of this filter {Filter = V > MA(V,15);}
 

sr114

Well-Known Member
Sr114:

When ever time permits pls reply on followings:-

In the attached afl pls explain the role of this filter {Filter = V > MA(V,15);}

vol is above 15 pd simple average of vol - trying to filter out low vol occurrence.

actually other filter may be the hi or lo condition

whatever suits u , use that filter

i will try to use the vol filter

ps - is the exploration working for u?

regards
Subroto
 

Similar threads