SP500 Optimizer 5min Strategy

Category: Strategies By: juanj Created: May 11, 2017, 8:44 AM
May 11, 2017, 8:44 AM
Strategies
47 Comments

Good Day

I have been a silent member of this community for quite some time but suppose as time would allow I would try to become more active. I have been developing PRT strategies for almost 2 years now and have quite a few running live and profitable on various indexes and FX Pairs. I still need to get to a point where I can freely share my strategies but still find that slightly difficult (especially knowing some people sell your IP for profit). Anyhow this is just one of the many rabbit hole strategies I have developed in an effort to outperform a given index.

I actually wrote this today when the idea came to me to write a small time frame strategy that attempts to enter the market and take profit as soon as possible with the ability to stop and reverse direction quickly if the position becomes unprofitable. I am sure the general idea can be adapted to other timeframes and markets.

///Spread set to 0.9 points

possize = 1
pointsp = 20 //points where profit is to be locked in
pointsb = 36 //points where stop is to be taken

fast = average[11,4](close)
medium = average[13,4](close)

If countofposition = 0 then
 If fast > medium then
  BUY possize CONTRACT AT open + averagetruerange[3](close)*2 stop
 EndIf
EndIf

If longonmarket and close >= positionprice + pointsp then
 If close < close[1] then
  SELL AT MARKET
 EndIf
ElsIf longonmarket and close <= positionprice - pointsb then
 SELLSHORT possize*2 CONTRACT AT MARKET
EndIf

If shortonmarket and close <= positionprice - pointsp then
 If close > close[1] then
  EXITSHORT AT MARKET
 EndIf
ElsIf shortonmarket and close >= positionprice + pointsb then
 BUY possize*2 CONTRACT AT MARKET
EndIf

SET TARGET pPROFIT 50

 

Download
Filename: YTD.jpg
Downloads: 84
Download
Filename: USD-Mini-5M-Report.png
Downloads: 164
Download
Filename: USD-Mini-5M.png
Downloads: 113
Download
Filename: Germany-30-Cash-EUR-5-Mini-Report.png
Downloads: 272
Download
Filename: Germany-30-Cash-EUR-5-Mini.png
Downloads: 278
Download
Filename: SP500-Optimizer-5min-Strategy.itf
Downloads: 544
Download
Filename: us-cash-mini-report-149442393784lpc.png
Downloads: 181
juanj Master
My name is Juan Jacobs and I am an algorithmic trader and trading coach. After 7 years of corporate work as a Systems Analyst, I have decided to pursue my passion of trading on a full-time basis. My current focus area is that of 'smart' strategies based on 'Machine Learning'. You can find me at www.FXautomate.com or visit my PRC Marketplace Store here: https://market.prorealcode.com/store/fxautomate/
Author’s Profile

Comments

Logo Logo
Loading...