COMMENTS FOR GOLD H1
1 replies
ekinciubey
3 years ago #268826
Hi,
After a few months and a few hours every day with SQX I see results.
Of course I don’t know yet what it will give for the future
I would like your comments for these results.
BUILD GOLD H1 from 2012 -> 2020 (LAST 30% OOS)
THEN RETEST from 2008 -> 2021 (LAST 30% OOS + Monte Carlo Manipulation & Monte Carlo retest Method)
After this I have 4 profitable strategies, after this I merged this for results.
I will test it in the darwinex DEMO account and am curious about the results.
PSEUDO CODE:
//——————————————————————–
// Pseudo Source Code of Portfolio
//
// Generated by StrategyQuant X Build 130 for MetaTrader
// at 01/02/2021 17:24
//
// Backtested on XAUUSDICMPlus3 / H1, 2008.01.01 – 2020.12.31
//——————————————————————–
//——————————————————————–
// Strategy Parameters
//——————————————————————–
int MagicNumber = 11111;
int StdDevChangesDownPrd = 50;
double StopLossCoef = 3.9;
double TrailingStopCoef = 2.7;
double TrailingActCef = 2.1;
Main chart = Current Symbol / Current TF;
//——————————————————————–
// Trading options logic
//——————————————————————–
Exit at End Of Day = false (1500);
Exit On Friday = false (2300);
LimitSignalsTimeRange = true (0500 – 2000, Exit at End: false, Orders to close: All);
MaxTradesPerDay = 0;
Min SL: 0, Max SL: 0, Min PT: 0, Max PT: 0; // in ticks/pips, 0 means unlimited
//——————————————————————–
// Trading rule: Trading signals (On Bar Open)
//——————————————————————–
LongEntrySignal = ((OpenDaily(Main chart)[1] crosses above Bid)
and (StdDev(Main chart,StdDevChangesDownPrd, PRICE_CLOSE) changes direction downwards));
ShortEntrySignal = ((OpenDaily(Main chart)[1] crosses below Ask)
and (StdDev(Main chart,StdDevChangesDownPrd, PRICE_CLOSE) changes direction downwards));
LongExitSignal = false;
ShortExitSignal = false;
//——————————————————————–
// Trading rule: Long entry (On Bar Open)
//——————————————————————–
if LongEntrySignal
{
// Action #1
Open Long order at Market;
Duplicate trades: disabled;
Stop Loss = StopLossCoef * ATR(29);
Trailing Stop = TrailingStopCoef * ATR(17), TS Activation at TrailingActCef * ATR(21);
}
//——————————————————————–
// Trading rule: Short entry (On Bar Open)
//——————————————————————–
if (ShortEntrySignal
and Not LongEntrySignal)
{
// Action #1
Open Short order at Market;
Duplicate trades: disabled;
Stop Loss = StopLossCoef * ATR(29);
Trailing Stop = TrailingStopCoef * ATR(17), TS Activation at TrailingActCef * ATR(21);
}
//——————————————————————–
// Trading rule: Long exit (On Bar Open)
//——————————————————————–
if ((LongExitSignal
and Not LongEntrySignal)
and (MarketPosition(“Any”, MagicNumber, “”) is Long))
{
// Action #1
Close Full position for Symbol = Any and Magic Number = MagicNumber;
}
//——————————————————————–
// Trading rule: Short exit (On Bar Open)
//——————————————————————–
if ((ShortExitSignal
and Not ShortEntrySignal)
and (MarketPosition(“Any”, MagicNumber, “”) is Short))
{
// Action #1
Close Full position for Symbol = Any and Magic Number = MagicNumber;
}
sanctum
3 years ago #269564
Viewing 1 replies (of 1 total)