Ask! - page 35

 

HI CG,

Is it possible programatically to do the following action.

a. To delete an indicator from a chart.

b. Wait for "X" time.

c. Reload the Indicator.

d. Wait for "X" time.

e. Repeat from "a".

If it is possible, can you please post it in the forum. Thanks in advance.

 
tirou:
HI CG,

Is it possible programatically to do the following action.

a. To delete an indicator from a chart.

b. Wait for "X" time.

c. Reload the Indicator.

d. Wait for "X" time.

e. Repeat from "a".

If it is possible, can you please post it in the forum. Thanks in advance.

This couldn't be coded with normal MQL4, you need to go to:

Send Keyboard keys to MetaTrader!

and

Programmatically Refresh your charts

The idea is to send keys to MetaTrader, the keys you might need:

Ctrl+I to open Indicator list window. Then Send the first letter of the Indicator's name key (For example: C for CCI). Then you have to send ALT_D to delete the indicator then send ESC key.

Hope it works!

 

anyone know if is possible lock an EA to not work in backtests?

thx

 
jsevero83:
anyone know if is possible lock an EA to not work in backtests? thx

hi jsevero83,

Give this code a try:

int start()

{

if(IsTesting()) return(0); //prevent me backtested!

.....

}
 

Please Please can anyone help me?

Hi everyone

I am a newbi on a big scale here. This is my first input to the forum please be gentle with me . I am looking for some one to help me create an ea.

I have read allot of the threads on here for the last two months. I think that this is a really really great way to learn and profit from the forex from all of these masters in this forum. I think their must be an ea available in this forum to my options but may not.

This is the idea of the ea I would like:

Choice of 4 different types moving averages slow,

Choice of 4 different types moving averages fast,

Activate an order when they cross long or short one bar after crossing but straight after one closes an other opens.

One or more bars after crossing is an optional amount.

When the order is activated it keeps track of the open price to the present price,

Allowing you to take a profit by adjustable percentage scale from an adjustable appointed amount.

The ea should also allow additional manual entries on the same ea via keyboard shortcut without affecting the ea's performance.

Exit point should be by adjustable percentage scale or by cross of moving average or manual which ever comes first.

I also would like a money management controller to my account amount

With risk percentage

And lot size

This ea can be used on all time frames

A similar ea might be available which can be adjusted to my options.

Please please please can someone help me with this???

Thanx

JTH

 
jth:
...Activate an order when they cross long or short one bar after crossing but straight after one closes an other opens.

One or more bars after crossing is an optional amount.

When the order is activated it keeps track of the open price to the present price,

...

Thanx

JTH

Hi jth,

Can you clarify above mentioned.

I did not understand sorry.

With image if possible.

 

I hope this helps you newdigital

I am sorry newdigital you can see I am new to this.

Anyway what I mean is the moving averages go long or short that it would activate an order.

Example when an active order goes short and it crosses the slow ma that it exits the long order then opens a short order at the same time or a price bar or two or none after the cross over.

One additional thing can the cross over have an alarm in it that rings once or for the duration of the bar which ever I choice.

Thanx newdigital

Regards

JTH

 

I hope this helps you newdigital

i'll atach a image with what i mean i a little while ok

 

my image attempt

my image attempt any questions let me know

Thank you

JTH

Files:
 

Hi CodersGuru

I tried your function to sendemail to any email from EA but it seems doesn't works with Outlook 2003 , any suggest? Have i to use only in conjunction with Outlook Express?

Futhermore i'd like to be able to send an email from my EA when an order is closed , how can I code this ?

thanks a lot

have a nice weekend