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

[amibroker] buy sell alerts for pivot points



PureBytes Links

Trading Reference Links

hello

newbie programming question

indicator used: pivot points or coded by E.M.Pottasch indicator
showing pivot levels after 30 minutes of trading ( CTOD - crucial
time of day )

I would like to add alert to when closing price of the candle
crosses calculated levels BUT ONLY when opening price of this very 
candle was also below calculated level ( high for sell and low for
buy signals can "pierce" the levels , that means for sell signal
price went up the MS1 at least open and close of the candle ,and 
open and close of the next candle was below the MS1 ) and arrow is
plotted after opening a NEXT candle.

example for s & p 500:
downtrend
MS1 - pivot median line : 1029,7
O - 1030., H - 1030.6, L - 1028.6, C - 1028.9       
     - no arrow at opening next candle

O - 1029.1, H - 1029.1, L - 1028.7, C - 1029.1       
  - after ( at )  opening another ( next ) candle arrow shows up

in this example O = H and is below MS1 = 1029.7 however for my
requirements O < MS1 is sufficient at the moment

Buy = Cover = Cross( Ref(C,-1), MS1 ) OR
Buy = Cover = Cross( Ref(C,-1), S1 );

and likewise

Short = Sell = Cross(MS1 , Ref(C,-1))OR
Short = Sell = Cross(MS1 , Ref(C,-1));

MS1 - first support median line
S1 - first support
so for sell : open and close of the candle are below MS1  or S1
respectively and so on for other levels.

Also another question: what needs to be incorporated to make back
testing and exploration possible as an example one can use any pivot
point calculating afl( for 3 min time frame for instance )

thanks in advance


greg



------------------------------------

**** 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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/