Pattern Analyzer Code

Posted By: Clifford_B

Pattern Analyzer Code - 11/04/19 21:35

How would you add the FuzzyRange function to this script ?

// Machine learning ////////////////////////////
#include <profile.c>

function run()
{
StartDate = 2010;
EndDate = 2018;
BarPeriod = 1440; // 1 Day
BarZone = WET; // Western European midnight
BarMode = BR_LEISURE; // allows weekend bars, but don't trade on them
NumWFOCycles = 5;
asset("EUR/USD");

set(RULES+TESTNOW);

if(Train) Hedge = 2; // for training, allow long + short
LifeTime = 3;
MaxLong = MaxShort = -1;

if(adviseLong(PATTERN+2+RETURNS,0,
priceHigh(2),priceLow(2),priceClose(2),
priceHigh(1),priceLow(1),priceClose(1),
priceHigh(1),priceLow(1),priceClose(1),
priceHigh(0),priceLow(0),priceClose(0)) > 50)
enterLong();

if(adviseShort() > 50)
enterShort();

PlotWidth = 600;
PlotHeight1 = 300;
//plotTradeProfile(40);
//plotWFOCycle(Equity,0);
//plotWFOProfit();
}
Posted By: danatrader

Re: Pattern Analyzer Code - 04/26/20 09:44

if(adviseLong(PATTERN+FUZZY+2+RETURNS,0,
© 2024 lite-C Forums