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

Reply via email to