Prorealtime to MT4

To add comments, please log in or register
Jo han
11
Jo han  

Hi!

Anyone who could convert this ProRealTime code snippet to mt4?


DEFPARAM CumulateOrders = False
Indicator1 = CCI[20](typicalPrice)
ATR = AverageTrueRange[20](close)
BuyOrder = (Indicator1 CROSSES OVER 0)
IF BuyOrder THEN
BUY 1 CONTRACT AT MARKET
SL = ATR *1
TP = ATR *2
ENDIF
SellOrder = (Indicator1 CROSSES UNDER 0)
IF SellOrder THEN
SellShort 1 CONTRACT AT MARKET
SL = ATR *1
TP = ATR *2
ENDIF

SET STOP LOSS SL
SET TARGET PROFIT TP


Best Regards, 

Johan

Flavio Jarabeck
99806
Flavio Jarabeck  
Jo han:

Hi!

Anyone who could convert this ProRealTime code snippet to mt4?


DEFPARAM CumulateOrders = False
Indicator1 = CCI[20](typicalPrice)
ATR = AverageTrueRange[20](close)
BuyOrder = (Indicator1 CROSSES OVER 0)
IF BuyOrder THEN
BUY 1 CONTRACT AT MARKET
SL = ATR *1
TP = ATR *2
ENDIF
SellOrder = (Indicator1 CROSSES UNDER 0)
IF SellOrder THEN
SellShort 1 CONTRACT AT MARKET
SL = ATR *1
TP = ATR *2
ENDIF

SET STOP LOSS SL
SET TARGET PROFIT TP


Best Regards, 

Johan

https://www.mql5.com/en/job
Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • www.mql5.com
I have  a PVT MTF indicator without source code. I use it on a range bar chart, i would like to have alerts once the green line cross the red line after the range bar candle closes. Can you code an EA from Tradingview's Pinescript? I have an indicator I would like...
To add comments, please log in or register