MQL4 - automated forex trading   /  

Forum

Read Financial Magazines in MetaTrader 4 and MetaTrader 5!

AUTO SL and TP

Back to topics list To post a new topic, please log in or register
avatar
4
enzozo 2010.01.04 20:24
 

hello to everyone here, I did a backtest of this EA, it manages the positions sl and tp automatically when you enter an order manually. soucy on there is always some error messages in the log of the tester, I still try with a demo account, but the window sl and tp from MT4 opens without stop, I would like to schedule according to my available margin and with a sl 50pips mini (I'm at FxPro) and with lot in my account (608.39 € balance). is it possible to use a pyramid fashion with breakeaven also? I'll post the program with screen capture, thank you in advance for any answers or support programming made. happy new year



Attached files:
  AutosSLiTPwSettercv1.mq4  (8.77 KB)
 
Meta COT Project - New Horizons for CFTC Report Analysis in MetaTrader 4

Meta COT Project - New Horizons for CFTC Report Analysis in MetaTrader 4

The article is about the use of CFTC report data (Open Interest) in MetaTrader. The article describes the proposed META COT project in details, shows how to load and process the necessary information. The Expert Advisor included into the project will help us analyze the effectiveness of the concept presented in the article. Finally, we'll draw some conclusions and offer useful suggestions.

avatar
85
whocares 2010.01.04 20:41 #
 
enzozo wrote >>

hello to everyone here, I did a backtest of this EA, it manages the positions sl and tp automatically when you enter an order manually. soucy on there is always some error messages in the log of the tester, I still try with a demo account, but the window sl and tp from MT4 opens without stop, I would like to schedule according to my available margin and with a sl 50pips mini (I'm at FxPro) and with lot in my account (608.39 € balance). is it possible to use a pyramid fashion with breakeaven also? I'll post the program with screen capture, thank you in advance for any answers or support programming made. happy new year


The errors that you are getting relates to the test data you are using:

There is a data mismatch. This is because there is something like a 1h bar that has a high that is higher than the daily bar in the same time window.

It does not mean that you ea is not working. If it opens that trades as you want and manages them correctly, and try it on a demo account as well then it is ok.

whocares

 
avatar
1397
cloudbreaker 2010.01.04 21:00 #
 

To clean your data:

- Find a small timeperiod dataset that you trust

- Use the period converter script to generate large timeperiod dataset from it.


CB

 
avatar
4
enzozo 2010.01.04 22:03 #
 
cloudbreaker:

To clean your data:

- Find a small timeperiod dataset that you trust

- Use the period converter script to generate large timeperiod dataset from it.


CB

hi thx fo your reponses, how i can set timeperiod, sorry i'm a full newbie...

 
avatar
1397
cloudbreaker 2010.01.04 22:10 #
 
enzozo:

how i can set timeperiod

Sorry - I don't know exactly what you mean by this question.


Set the active chart by using the M1, M5 etc. buttons along the top.

Set the timeperiod in the Strategy Tester by using that option in the test config fields.

Manipulate the data that is used by the Strategy Tester by going to the History Center.

So to fix the mismatch:

- Either record or obtain a set of data for a small timeperiod such as M1 or M5

- Then run the period converter script (supplied with MT4) to create the larger timeperiod data sets (such as M30, H1 etc.)

- Then import the newly created data sets into the History Center for use in the Strategy Tester.


CB

 
avatar
4
enzozo 2010.01.04 23:21 #
 
cloudbreaker:

Sorry - I don't know exactly what you mean by this question.


Set the active chart by using the M1, M5 etc. buttons along the top.

Set the timeperiod in the Strategy Tester by using that option in the test config fields.

Manipulate the data that is used by the Strategy Tester by going to the History Center.

So to fix the mismatch:

- Either record or obtain a set of data for a small timeperiod such as M1 or M5

- Then run the period converter script (supplied with MT4) to create the larger timeperiod data sets (such as M30, H1 etc.)

- Then import the newly created data sets into the History Center for use in the Strategy Tester.


CB

dear CB,

I put the chart m1ou m5, I settle in the strategy tester m30, it always gives me the same errors ... : /
I soon opened my positions, having a distant Stoploss 50pips minimum (FxPro compels me) and a takeprofit I can settle before taking a position. If possible have a Stoploss moving as soon as I start to be positive on the wallet, he can move so that if my position is closed I do not lose a penny. is it possible to use the fashion pyramid, and the last position pyramid does not eat my wallet also with respect to the previous position?

 
avatar
4
enzozo 2010.01.05 22:51 #
 
who can help me?

mail me to enzo.invest @ live.fr
avatar
7
rajivxxx 2012.05.05 10:00 #
 

avatar
14020
RaptorUK 2012.05.05 11:07 #
 
rajivxxx:


Does it check for compliance with FREEZLEVEL and STOPLEVEL before you try and send the invalid OrderModify ? how do you alert the user ?
 
avatar
146
erzo 2012.05.05 11:30 #
 
rajivxxx:

Is your code from here: http://codebase.mql4.com/7179 ?
Back to topics list  

To add comments, please log in or register