Goblin "BiPolar" Edition - page 74

 

something very very strange in backtesting

I am now getting a total loss on exactly the same settings?????

ive even redownloaded the expert posted here

I have a feeling that global variables are being kept from other settings??

tho I dont think that can happen

ive even rebooted

hmmmm

something smells!!!1

 
Perky:
something very very strange in backtesting

I am now getting a total loss on exactly the same settings?????

ive even redownloaded the expert posted here

I have a feeling that global variables are being kept from other settings??

tho I dont think that can happen

ive even rebooted

hmmmm

something smells!!!1

what time frame? and broker? and what tick data?

 

GOBLIN found the problem and for future testers !!!!

very dangerous

it was the global variables!!!!!!

you need to be in the expert panel and press F3 key and delete them all!!!!

this is such a dangerous thing!!!

if you change amounts and variables it will affect future backtests!!!!!!

 
Perky:
GOBLIN found the problem and for future testers !!!!

very dangerous

it was the global variables!!!!!!

you need to be in the expert panel and press F3 key and delete them all!!!!

this is such a dangerous thing!!!

if you change amounts and variables it will affect future backtests!!!!!!

HUH?...WHat do you mean? what experts panel?

 
Perky:
GOBLIN found the problem and for future testers !!!!

very dangerous

it was the global variables!!!!!!

you need to be in the expert panel and press F3 key and delete them all!!!!

this is such a dangerous thing!!!

if you change amounts and variables it will affect future backtests!!!!!!

Goblin doesn't use global variables. At least not the versions I developed.

 

ok just letting everyone know how dangerous they can be

i think ill take them out

 
Perky:
ok just letting everyone know how dangerous they can be i think ill take them out

What are the global variables in question and how are they manifesting themselves as a source of trouble with Goblin?

 
bluto:
What are the global variables in question and how are they manifesting themselves as a source of trouble with Goblin?

they are in hybrid versions

// Specify a name for the global variable that tracks gravy profit.

OrigBal = AccountNumber()+"_"+Symbol()+"_"+Period()+"_OrigBal";

// Define the variable if it doesn't already exist.

if (!GlobalVariableCheck(OrigBal)) GlobalVariableSet(OrigBal, AccountBalance());

// Set the value.

valOrigBal = GlobalVariableGet(OrigBal);

// Specify a name for the global Equity flag variable.

EquityFlag = AccountNumber()+"_"+Symbol()+"_"+Period()+"_EquityFlag";

// Define the variable if it doesn't already exist.

if (!GlobalVariableCheck(EquityFlag)) GlobalVariableSet(EquityFlag, 0);

// Get a value.

valEquityFlag = GlobalVariableGet(EquityFlag);

// Specify a name for the global variable that tracks Gravy profit.

GravyProfit = AccountNumber()+"_"+Symbol()+"_"+Period()+"_GravyProfit";

// Define the variable if it doesn't already exist.

if (!GlobalVariableCheck(GravyProfit)) GlobalVariableSet(GravyProfit, 0.0);

// Get a value.

valGravyProfit = GlobalVariableGet(GravyProfit);

// Specify a name for the global variable that tracks the current balance.

CurrBalance = AccountNumber()+"_"+Symbol()+"_"+Period()+"_CurrBalance";

// Define the variable if it doesn't already exist.

if (!GlobalVariableCheck(CurrBalance)) GlobalVariableSet(CurrBalance, 0.0);

// Get a value.

valCurrBalance = GlobalVariableGet(CurrBalance);

and i have found when I was testing Moneymangement i changed my starting value to 100,000 then 1,000,000 and ran the backtest then changed back

the results were so false as to be scarey..

after deleteing globals using F3 key it was back to normal

im not saying your version is wrong Bluto im warning people using hybrids that this can happen

and these backtests can affect the expert that is running live if on the same account number

 
Perky:
they are in hybrid versions

// Specify a name for the global variable that tracks gravy profit.

OrigBal = AccountNumber()+"_"+Symbol()+"_"+Period()+"_OrigBal";

// Define the variable if it doesn't already exist.

if (!GlobalVariableCheck(OrigBal)) GlobalVariableSet(OrigBal, AccountBalance());

// Set the value.

valOrigBal = GlobalVariableGet(OrigBal);

// Specify a name for the global Equity flag variable.

EquityFlag = AccountNumber()+"_"+Symbol()+"_"+Period()+"_EquityFlag";

// Define the variable if it doesn't already exist.

if (!GlobalVariableCheck(EquityFlag)) GlobalVariableSet(EquityFlag, 0);

// Get a value.

valEquityFlag = GlobalVariableGet(EquityFlag);

// Specify a name for the global variable that tracks Gravy profit.

GravyProfit = AccountNumber()+"_"+Symbol()+"_"+Period()+"_GravyProfit";

// Define the variable if it doesn't already exist.

if (!GlobalVariableCheck(GravyProfit)) GlobalVariableSet(GravyProfit, 0.0);

// Get a value.

valGravyProfit = GlobalVariableGet(GravyProfit);

// Specify a name for the global variable that tracks the current balance.

CurrBalance = AccountNumber()+"_"+Symbol()+"_"+Period()+"_CurrBalance";

// Define the variable if it doesn't already exist.

if (!GlobalVariableCheck(CurrBalance)) GlobalVariableSet(CurrBalance, 0.0);

// Get a value.

valCurrBalance = GlobalVariableGet(CurrBalance);

and i have found when I was testing Moneymangement i changed my starting value to 100,000 then 1,000,000 and ran the backtest then changed back

the results were so false as to be scarey..

after deleteing globals using F3 key it was back to normal

im not saying your version is wrong Bluto im warning people using hybrids that this can happen

and these backtests can affect the expert that is running live if on the same account number

Perky - OK, I think these are related to the mods that "autofx" added awhile back. You must have the "mod H" version. Maybe.

 

I modified from that giving as attached for gbp in 3 months

its in post # 708

starting if it was irresponsible to post an expert so powerful lol

but then backtests are a crock of...

Reason: