- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
Scan Candlestick Tweezer Top & Bottom (buy & Sell) by D Nayab for Amibroker (AFL)
Scan the market for Japanese candle patterns of recent Tweezer top & Tweezer Bottom. Green arrow indicates long, Red arrow indicates short.
Kod:
// Downloaded From https://www.WiseStockTrader.com
/* Scan Tweezer Top & Bottom (buy & Sell)
by By D Nayab August 2021*/
O1 = Ref(O,-1);O2 = Ref(O,-2);
H1 = Ref(H,-1);H2 = Ref(H,-2);
L1 = Ref(L,-1);L2 = Ref(L,-2);
C1 = Ref(C,-1);C2 = Ref(C,-2);
MHT= HHV(H,5)==H;
MHY= HHV(H,5)==Ref ( H, -1);
MLT= LLV(L,5)==L;
MLY= LLV(L,5)==Ref(L,-1);
Buy=abs(L-Ref(L,-2))/L<0.0025 AND O < C AND (Ref( O,-1) > Ref(C,-1)) AND (MLT OR MLY);
Sell=abs(H-Ref(H,-1))<=H*0.0025 AND O >C AND (Ref(C,-1) > Ref(O,-1))AND (MHT OR MHY);
kaynak
www.WiseStockTrader.com