Description:
This indicator is developed for ALEX ATB Bot strategy posted in the library here.
Instructions:
Set values “compra” and “venta” to be shown as HISTOGRAM. That’s all.
How it works?
It shows buy and sell signals.
- Sell signal: Red bar is lighted ON (value=-1)
- Buy signal: Green bar is lighted ON (value=1)
*Full strategy explanations on strategy post
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
REM Señal de compra o venta SETJU REM Variables mm = Exponentialaverage[8](close) once uma=Highest[8](high) once umb=Lowest[8](low) REM NOTES // TB = touched bar //if barindex<2 then //ltp = mm //endif // OBJETIVO objetivo=45*pipsize REM Establecimiento del último toque con la media móvil if High > mm and Low < mm then tb = BarIndex ltp = mm uma = mm umb = mm endif REM Establecemos nuevo maximo en movimiento alcista if low>mm then n = BarIndex - tb uma=Highest[n](high) umb=mm endif REM Establecemos nuevo minmo en movimiento bajista if high<mm then m = BarIndex - tb umb=Lowest[m](low) uma=mm endif REM Condición de entrada Largo if (uma-ltp)>objetivo and uma>mm then compra=1 endif if (uma-ltp)<=objetivo then compra=0 endif REM Condición de entrada corto //corto = ltp-umb if (ltp-umb)>objetivo and umb<mm then venta=-1 endif if (ltp-umb)<=objetivo then venta=0 endif REM Mostrar Resultado Return compra coloured(0,128,0) as "compra", venta coloured(220,20,60) as "venta" |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Doesn’t work for me. Set values “compra” and “venta” to be shown as HISTOGRAM