[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] PopUp Alert Coding Help required [1 Attachment]



PureBytes Links

Trading Reference Links

[Attachment(s) from Bobby Mehta included below]

Hello,
I'm a novice to Amibroker and have got the 5.2 ver installed. I found one of the AFL's on the net which I'm trying to incorporate .

Following is the Code - "FibboGatto" (modified it a bit, as per my basic knowledge):

_SECTION_BEGIN("FibboGatto");

FG = ((C+Ref(C,-1)+Ref(C,-2)+Ref(C,-3)+Ref(C,-5)+Ref(C,-8)+Ref(C,-13)+Ref(C,-21)+Ref(C,-34)+Ref(C,-55)+Ref(C,-89)+Ref(C,-144))/C)*-1;

Plot(FG, "FibboGatto", colorRed);
Plot(EMA(FG,38), "", colorLightBlue);


Buy=FG > EMA(FG,38);
PlotShapes( IIf( Buy, shapeDownArrow + shapePositionAbove, shapeNone ), colorGreen );
PopupWindow("Buy : " + FullName(),"Alert", 5, 640*mtRandom(), 480*mtRandom());
 

Sell=FG < EMA(FG,38);
PlotShapes( IIf( Sell, shapeUpArrow + shapePositionAbove, shapeNone ), colorRed );
PopupWindow("Sell : " + FullName(),"Alert", 5, 640*mtRandom(), 480*mtRandom());

_SECTION_END();
******************************************

I tried coding the Popup option, which I wanted as follows:
SHOULD POP-UP A WINDOW (5SECS DELAY). SAY FOR EXAMPLE, IF THE CROSSOVER HAPPENS FOR SELL, IT SHOULD GENERATE A WINDOW INDICATING THE NAME OF THE SCRIP AND THE SELL DIALOG - "AFTER THE CLOSE OF THE CANDLE WHEN THE CROSSOVER HAPPENED ".
THE NEXT DIALOG BOX OF THAT SCRIP SHOULD OCCUR WHEN THE SIGNAL CHANGES TO BUY....

I would be grateful to the experts of the group who can code the same for me.

Thanks....Bobby

PS : Attaching the snapshot of the screen capture of the buy/sell arrows





Attachment(s) from Bobby Mehta

1 of 1 Photo(s)


__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___