Suggestion to forum admins - page 44

 

If you are looking for similar codes to code your EA so you can do the following:

1. You can check turtle EAs so if you are developing some EA - you can check some example from those EAs:

So, check those 2 EAs as it should work in turtle way:

https://www.mql5.com/en/forum/175825

and

https://www.mql5.com/en/forum/175833

2. As to manual trading so it looks like re-enter for me but I am not using ATR.

I remember one indicator using re-enter with ATR (PriceChannel_Signal indicator) so this indicator is also having re-enter dots (on the chart) based on ATR current/chart timeframe (for example: 0.5*iATR(NULL,0,Length,i ) ... and there are few EAs based on it in asctrend thread but I do not think that it was coded using re-enter.

Just example with re-enter using this indicator (GBPUSD, M15, PriceChannel_Signal_v1.2 indicator), right now:

So, you can take some example about how to code from this indicator (2 versions are attached).

But better is to look at 2 Turtle EAs (see links above).

 

Hi Dominator4fx,

I did not trade those Turtle EAs so I do not have any opinion for now. But as I know - it is the famous system and there are some indicators to trade it manually (check my previous posts for the links), so you can try ...

I can try/trade it later because for now - I am trying this manual system https://www.mql5.com/en/forum/181242 because it is very simple to use and I do not need to spend whole day and bight near my pc to trade it.

After that - I can go to turtle system and can trade it manually ... if someone will ask for example.

 

Hi Newdigital,

Do you know of any EA of this forum that has this feature: if an order is closed or stopped out, a new order cannot be opened until after a certain period of time ?

Could you please provide a link to that EA if it exists ?

Thanks,

pooh

 

Alpha and Electra EAs are having this function coded.

I am not sure exactly but I think that this version of the EA is having such a function too (because this public EA is having same account protection feature as Alpha and Electra):

https://www.mql5.com/en/forum/174975/page309

Some more codes:

Sleep function:

https://www.mql5.com/en/forum/174203

IsStopped function:

https://www.mql5.com/en/forum/173315

and check this thread https://www.mql5.com/en/forum/174329 for some other function.

 

Yes, this EA is having it (HoursToRestart)

https://www.mql5.com/en/forum/174975/page309

Files:
 

Forum posts not updated !

Hi new digital

If we search forum posts by name eg. select new digital > View Forum Posts, the result we will get from 03-21-2012 and not from today !?

 

...

pooh123

You can use a function like this in order to find the time when the last order was closed. Then comparing TimeCurrent() to it can give you how long have passed from that last closed order and it is not complicated to limit it to not to trade (open new orders) if a certain period did not pass yet (you can specify the period down to 1 second precision)

datetime lastOrderTime(int magicNumber=0)

{

datetime lastTime = 0;

for(int i=OrdersHistoryTotal()-1; i>=0; i--)

{

if (OrderSelect(i,SELECT_BY_POS, MODE_HISTORY)==false) break;

if (magicNumber!=0)

if (OrderMagicNumber() != magicNumber) continue;

if (OrderSymbol() != Symbol()) continue;

if (OrderCloseTime() <= lastTime) continue;

lastTime = OrderCloseTime();

}

return(lastTime);

}

pooh123:
Hi Newdigital,

Do you know of any EA of this forum that has this feature: if an order is closed or stopped out, a new order cannot be opened until after a certain period of time ?

Could you please provide a link to that EA if it exists ?

Thanks,

pooh
 
secretcode:
Hi new digital If we search forum posts by name eg. select new digital > View Forum Posts, the result we will get from 03-21-2012 and not from today !?

Hi secretcode,

We informed the developers and hope it will be fixed soon.

Thanks for reporting.

 

Mladen and Newdigital,

Thanks to both of you ! The feeback from both of you is very helpful. You resolved my EA problem.

Thanks again

pooh

 

...

It seems to be fixed

As well as the search box (it is google search box again and I rather enjoy using it again )

secretcode:
Hi new digital If we search forum posts by name eg. select new digital > View Forum Posts, the result we will get from 03-21-2012 and not from today !?