Beruflich Dokumente
Kultur Dokumente
TimeFrameSet(in5Minute);
Buy = Cross(EMA( Close , 8 ) , EMA( Close , 34 )) ;
Sell = Cross(EMA( Close , 34 ) , EMA( Close , 8)) ;
AlertIf( Buy, "SOUND C:\\Windows\\Media\\Mamoi.wav", "Audio alert", 1 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\Mamoi.wav", "Audio alert", 2 );
_SECTION_BEGIN("Stoploss");
no=20;
res=HHV(H,no);
sup=LLV(L,no);
avd=IIf(C>Ref(res,-1),1,IIf(C<Ref(sup,-1),-1,0));
avn=ValueWhen(avd!=0,avd,1);
supres=IIf(avn==1,sup,res);
color=IIf(avn==1,colorPaleGreen,colorOrange);
Plot(supres,"Stoploss",color,styleStaircase|styleThick|styleNoTitle);
_SECTION_END();
sig = "BUY";
sig = "SELL";
sig = "BUY";
sig = "SELL";
_SECTION_BEGIN("Stoploss");
no=20;
res=HHV(H,no);
sup=LLV(L,no);
avd=IIf(C>Ref(res,-1),1,IIf(C<Ref(sup,-1),-1,0));
avn=ValueWhen(avd!=0,avd,1);
supres=IIf(avn==1,sup,res);
color=IIf(avn==1,colorPaleGreen,colorOrange);
Plot(supres,"Stoploss",color,styleStaircase|styleThick|styleNoTitle);
_SECTION_END();
======
_SECTION_BEGIN("RoboTrade Plugin");
Execute_RoboTrade("AmiTS");
===========
r1=AmiTradingSA();
=======
tar1 = entry + (entry * .0050);
tar2 = entry + (entry * .0092);
tar3 = entry + (entry * .0179);
bars = i;
i = 0;
}
if(Sell[i] == 1)
{
sig = "SELL";
entry = C[i];
sl = TrendSL[i];
tar1 = entry - (entry * .0050);
tar2 = entry - (entry * .0112);
tar3 = entry - (entry * .0212);
========
Hello All,
I am using BuySell Nifty Trading system since last 6 months. I have a problem.
Earlier I used to get a Sound Alert when a buy or sell signal candle gets activated
and the sound used to beep for entire duration of the Signal activation candle.
i.e. on a 5 minute chart when buy signal gets triggered, I used to get sound beep
for entire 5 minute duration. Now since last one month I am getting Sound Alert
only once when the buy signal gets activated. Can anyone help me where is the
problem, if someone can let me know the AFL code is correct to give sound for
entire duration of signal.
AlertIf(Sell,"SOUND C:\\Windows\\Media\\Ding.wav","Sell@" + WriteVal( H,1.2) ,2);
AlertIf(Buy,"SOUND C:\\Windows\\Media\\Ding.wav","Buy@" + WriteVal( O,1.2),1);
Awaiting response
thanks
Tarmac
=========
Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );
Short = Sell;
Cover = Buy;
AlertIF( Buy, "EMAIL", "A sample alert on "+FullName(), 1 );
AlertIF( Sell, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 2 );
AlertIF( Short, "EXEC Calc.exe", "Launching external application", 3 );
AlertIF( Cover, "", "Simple text alert", 4 );
But the alert is triggered at next bars open, not exactly at bar complete.
regards
=========