XAUUSD Gold trading strategy on Friday only

Category: Strategies By: DonDollar Created: November 7, 2016, 10:10 AM
November 7, 2016, 10:10 AM
Strategies
4 Comments

Hi there,

after a long time of reading all the great strategies I will try to make my first contribution.

Very simple, very easy. Buy Gold Mini only on a Friday afternoon and sell it on the same day.

  • Gold Kasse Mini (10 oz)
  • Timeframe: 1h
  • Tested with Data from IGMarkets (since 2006) and Version 10.2

Looking for your comments and an idea how to reduce the losses to make the system more profitable.

Rgds,

Clemens

Code:

// Wenn der 25te ein Wochenende ist, dann kaufe am nächsten Werktag
DEFPARAM CUMULATEORDERS = False
DEFPARAM PRELOADBARS = 10000

// Positionsize
positionSize = 5

//Start and end of the position
startTime = 150000

// Go Long...
IF Not LongOnMarket and (CurrentDayOfWeek = 5) and (OpenTime = startTime) then
 BUY positionSize CONTRACTS AT MARKET
ENDIF

// Bedingungen zum Ausstieg von Long-Positionen
if onmarket and BARINDEX-TRADEINDEX(1)>=6 then
 Sell AT MARKET
Endif

// Stops und Targets: Legen Sie hier schützende Stops und Profit Targets fest
SET STOP LOSS 21

 

Download
Filename: XAUUSD-Gold-Friday-Only.itf
Downloads: 316
DonDollar Average
I usually let my code do the talking, which explains why my bio is as empty as a newly created file. Bio to be initialized...
Author’s Profile

Comments

Logo Logo
Loading...