Specification
We have a number of automated strategies working on the ProRealTime platform. We are looking for someone to translate the code from PRT on to MT4 for us to be able to test and use. We are looking to be able to adjust basic variables ourselves i.e. back test criteria, and TA settings.
The strategies are based on commonly used indicators and will have features such as trailing stop losses. We may wish to undergo repeat work and support and have a long term relationship with the person whom we select. Skype contact is a must.
We have all the code already written for PRT so there is no interpretation needed in terms of the settings and functions, just translation. For example, this is the code and what it looks like on PRT.
Please let us know if you can offer these services and we can sort a business arrangement.
PRT code example:
EFPARAM CumulateOrders = False // Cumulating positions deactivated
DEFPARAM FLATAFTER = 205900 (variable J) // close open trades at this Time
// Set £ per point here
n = 1 //recommended is 1
//Code only allows trading between certain hours
indicator1 = TIME > 080000 (Variable A)
indicator2 = TIME < 110000 (Variable B
c1 = indicator1 AND indicator2
//Code excludes certain dates, some past dates for back tests and future dates
IF Date = 20161214 or Date = 20160921 or Date = 20160727 or Date = 20160615 or Date = 20160427 or Date = 20160316 or Date = 20160127 or Date = 20151216 or Date = 20151028 or Date = 20150917 or Date = 20150729 or Date = 20150617 or Date = 20150429 or Date = 20150318 or Date = 20150128 or Date = 20141217 or Date = 20141029 or Date = 20140917 or Date = 20140730 or Date = 20140618 or Date = 20140430 or Date = 20140319 or Date = 20140129 THEN
TradingDay = 0
ELSE
TradingDay = 1
ENDIF
// Conditions to enter long positions
indicator3 = close
indicator4 = SuperTrend[3,10] (Variable C)
c2 = indicator3 > indicator4
indicator5 = RSI[14](close) (Variable D)
c3 = (indicator5 CROSSES OVER 20) (Variable E)
indicator6 = Stochastic[14,3](close) (Variable F)
c4 = (indicator4 < 20) (Variable G)
IF c1 AND c2 AND c3 AND c3 and c4 AND TradingDay = 1 THEN
BUY n PERPOINT AT MARKET
ENDIF
// Stops and targets
SET STOP pLOSS 35 (Variable G)
SET TARGET pProfit 100 (Variable H)
//trailing stop
trailingstop = 30 (Variable I)
//resetting variables when no trades are on market
if not onmarket then
MAXPRICE = 0
MINPRICE = close
priceexit = 0
endif
//case LONG order
if longonmarket then
MAXPRICE = MAX(MAXPRICE,close) //saving the MFE of the current trade
if MAXPRICE-tradeprice(1)>=trailingstop*pointsize then //if the MFE is higher than the trailingstop then
priceexit = MAXPRICE-trailingstop*pointsize //set the exit price at the MFE - trailing stop price level
endif
endif
//exit on trailing stop price levels
if onmarket and priceexit>0 then
EXITSHORT AT priceexit STOP
SELL AT priceexit STOP
endif