Moving Average Experts! - page 3

 
firedave:
Hi codersguru, just a small question. How do you define the MagicNumber variable on your function ? I mean is it some kind of global variable definition ? Thank you in advance

hi firedave,

I define it on the top of the expert code (before the main functions start() , init() and dinint() :

//--- Global variables

int MagicNumber = 101090;

string ExpertComment = "PriceCross";

to make it in the global scope and the every line in the expert code can use it.

When the contest starts the code will be availabe! I'm sorry for that!

 
codersguru:
We can write Loss Protector too!

SL is a loss protector.

You are trading with too much risk.

Maybe thats a good strategy for a contest, but not for real trading.

Btw, will there be a fixed risk ratio (fixed lot size to use) for the contest EAs?

 
lomme:
will there be a fixed risk ratio (fixed lot size to use) for the contest EAs?

No, I think there's no fixed risk ratio in the contest!

 

MA Cross

codersguru - when do you expect to be posting the EA? Also, when

you do, would you also submit a file with the corresponding indicators? Thanks.

 

Statement update!

lomme:
SL is a loss protector.

You are trading with too much risk.

Maybe thats a good strategy for a contest, but not for real trading.

Btw, will there be a fixed risk ratio (fixed lot size to use) for the contest EAs?

Loss protector I meant is for the all of opened trade!

Anyway my ProfitProtector code has been executes at 150USD level and this is the final statement!

Files:
 
eagle4x:
codersguru - when do you expect to be posting the EA? Also, when you do, would you also submit a file with the corresponding indicators? Thanks.

When the context starts I'll post the EA!

The indicators are always Moving Averages !

 

100USD to 251USD in 6 hours!

100USD to 251USD in 6 hours is not bad ! even the risk!

 
codersguru:
hi firedave,

I define it on the top of the expert code (before the main functions start() , init() and dinint() :

//--- Global variables

int MagicNumber = 101090;

string ExpertComment = "PriceCross";

to make it in the global scope and the every line in the expert code can use it.

When the contest starts the code will be availabe! I'm sorry for that!

Hi codersguru, thank you for the prompt reply. No problem with your EA, I'm just need the information about global variable definition. Your answer is much satisfy. Again thank you and all the best for you

 

Statement update!

This my statement update!

100USD into 338USDin less than two days although Bush Statement !

 

Statement update!

The EA closed the trades to protect the profit.

100USD into 361USD in 2 days!

Reason: