Forex



Go Back   Forex Trading > Trading systems > Phoenix
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #31 (permalink)  
Old 11-25-2006, 12:18 PM
Senior Member
 
Join Date: Oct 2006
Location: Margarita Island - Venezuela
Posts: 324
bertbin is on a distinguished road
Quote:
Originally Posted by daraknor
Error 130 is an attempt to set the stoploss too close to the current price. I the code changes are in dialog on the programming forum, I will release them this weekend. Mode1 should not have this error, since it isn't moving the SL around.

Thanks Darak...
At least we have somebody that knows...
Good
Nice WE
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #32 (permalink)  
Old 11-26-2006, 08:43 AM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Quote:
Originally Posted by bertbin
Thanks Darak...
At least we have somebody that knows...
Good
Nice WE
I listed the exact change necessary in case anyone else wanted to merge and release, I just wasn't on a computer with the source code at the moment. I waited a day, nobody released, I responded here since the bug hadn't been acknowledged in this thread.
The bug is fixed in the 5.6.6 release I believe (I ran a few backtests and didn't get the error anymore), but we need to test it still.
Phoenix - Development+Suggestions - MQ4 in Post#1
Bertbin, how do you think we can work more closely together?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #33 (permalink)  
Old 11-26-2006, 11:36 AM
Senior Member
 
Join Date: Oct 2006
Location: Margarita Island - Venezuela
Posts: 324
bertbin is on a distinguished road
Quote:
Originally Posted by daraknor
Bertbin, how do you think we can work more closely together?
No problem. Mail, Pm, skype as you want...

I install yesterday the indicator of Alamandjani showing the buy and sell entries. For me when you put this indicator on usd/chf and eur/usd you see how they are different : that the settings are good for usdchf and bad for eur/usd
Why ? You have a balanced entry signal, more sell, in usdchf (= i am posi on usd chf) and quite only sell in eurusd (= i will never trade on that pair with such settings ! = settings are bads)
At the moment you have entries signal in the same direction of the trend = you got the settings (after you back'test, forward tests, etc...)
It's perhaps a way to find rapidly the new settings for an eventual next opposite trend ?

Now how to know a new trend ? Euuuh no answer for the moment
BUT a bit back to fundamentals : Euro is going high... too high for EZ... and $ want a strong $... Oil is down = good for States... Only unknown thing : China... Well stop for now..
In P5 : when you start to have strong losses (in pips)... If you see my statements of last week, the results start to be equal between gain and losses = something is hapenning


Stupid?

BTW have you see the indicators trend in Here's the new Goblin the link I posted you yesterday ?

(Darak I worked 20 years in advertsiing and, in brain storming meetings, a stupid idea sometimes brings new and/or brillant concept. Or nothing !!! but better to express that idea....That why sometimes, I am a bit... stupid ...Hi ! Hi ! Hi !)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #34 (permalink)  
Old 11-30-2006, 10:25 AM
Wackena's Avatar
Senior Member
 
Join Date: May 2006
Posts: 216
Wackena is on a distinguished road
I noticed this AM that there is a repeated error message in the Experts tab and repeated attempts to OrderModify in Journal.

In the Experts Tab this is the message.

Phoenix 5.6.06.USDJPY,M15:OrderModify-Error # 1

Not sure what this means. In mgl error codes, Error 1 is "No error returned, but the result is unknown." Demo is on North Finance and I guess this could be a server problem.

Anybody else seeing this?

Wackena
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #35 (permalink)  
Old 11-30-2006, 03:29 PM
Wackena's Avatar
Senior Member
 
Join Date: May 2006
Posts: 216
Wackena is on a distinguished road
Quote:
Originally Posted by Wackena
I noticed this AM that there is a repeated error message in the Experts tab and repeated attempts to OrderModify in Journal.

In the Experts Tab this is the message.

Phoenix 5.6.06.USDJPY,M15:OrderModify-Error # 1

Not sure what this means. In mgl error codes, Error 1 is "No error returned, but the result is unknown." Demo is on North Finance and I guess this could be a server problem.

Anybody else seeing this?

Wackena
I contacted FDXX about above problem and this is their response.

Quote:
-----Original Message-----
From: NorthFinance Support Team [SMTP:support@northfinance.com]
Sent: Thursday, November 30, 2006 7:32 AM
To: xxxxxx@bellsouth.net
Subject: experts tab

Dear sir

The expert tab contains information about the attached expert,

including opening/ closing of positions, modifying of orders, the experts
own message.

You can find only the latest message in the window.

We have checked the above error message to make sure that it is not an error common from the system and it was regarding an active expert adviser.

For further information about indicators, scripts, ea please refer to
www.mql4.com <http://www.mql4.com/> it is specially designed, to answer
all related enquires

Please do not hesitate to email us for any further assistance

Kind regards,

Gavin

North Finance Support Team
www.northfinance.com
I posted this question on the mql forum.

Quote:
wackena 2006.11.30 15:53edit | delete
I'm getting repeated error message in my FDXX Demo Terminal window expert tab.

"Expert Name".USDJPY,M15:OrderModify-Error # 1

mql error code 1 is "No error returned, but the result is unknown."

Could someone advise what could cause this type error?

Thanks,

Wackena
Irtron was kind enough to give the following response.
reply

Quote:
80 Irtron 2006.11.30 17:31
That usually means that OrderModify() has nothing to do with the parameters it's called with.
I.e all the levels are the same the modified order has already.

Hint: check if the modification parameters are different from existing ones before the call.
I can't check modification parameters as Journal is full of OrderModify-eurjpy and Experts is full of OrderModify-usdjpy-error#1.

Could there be a problem in EA for OrderModify?

Does this code in EA try to OrderModify to same values as order.

Code:
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,GreenYellow);
Metatrader may not accept modify an order to its already existing values. There must be at least one value change to process OrderModify command.

Good mystery for me.

Wackena
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #36 (permalink)  
Old 11-30-2006, 07:44 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Quote:
Originally Posted by Wackena
I contacted FDXX about above problem and this is their response.



I posted this question on the mql forum.



Irtron was kind enough to give the following response.
reply



I can't check modification parameters as Journal is full of OrderModify-eurjpy and Experts is full of OrderModify-usdjpy-error#1.

Could there be a problem in EA for OrderModify?

Does this code in EA try to OrderModify to same values as order.

Code:
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,GreenYellow);
Metatrader may not accept modify an order to its already existing values. There must be at least one value change to process OrderModify command.

Good mystery for me.

Wackena
Are you using trailing stops in mode 1, or breakeven in mode 3? If so, what could be happening is the trailing stop code triggers, calls a refresh rates, finds the price has returned to a less profitable level and sends an order modify with the same price data again. To troubleshoot this, please comment the "RefreshRates();" inside the TrailingStop() function code near the bottom and see if you still have the error. Is anyone else getting this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #37 (permalink)  
Old 11-30-2006, 10:23 PM
Senior Member
 
Join Date: Oct 2006
Location: Margarita Island - Venezuela
Posts: 324
bertbin is on a distinguished road
MODE 3 both

On FXDD :
2006.11.30 18:16:30 Phoenix_EA_v5_6_06 USDJPY,M15: OrderModify - Error # 1
From 17h32 til now

On Interbak
2006.11.30 17:32:13 Phoenix_EA_v5_6_06 GBPJPY,M15: OrderModify - Error # 1
From 16h25 til now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #38 (permalink)  
Old 11-30-2006, 11:37 PM
Wackena's Avatar
Senior Member
 
Join Date: May 2006
Posts: 216
Wackena is on a distinguished road
Quote:
Originally Posted by daraknor
Are you using trailing stops in mode 1, or breakeven in mode 3? If so, what could be happening is the trailing stop code triggers, calls a refresh rates, finds the price has returned to a less profitable level and sends an order modify with the same price data again. To troubleshoot this, please comment the "RefreshRates();" inside the TrailingStop() function code near the bottom and see if you still have the error. Is anyone else getting this?
Using Mode 3 and BreakEvenAfterPips=0. Error#1 message in Experts tab has stopped. After review of the code, I believe the problem is this OrderModify code.
Code:
if(FirstTrade==true && GlobalVariableGet("FlagMode3Trade2")==1)
    {
      RefreshRates(); //Added by Daraknor 5.6.6
      for(int y=0;y<OrdersTotal();y++)
        {
          OrderSelect(y, SELECT_BY_POS, MODE_TRADES);
          if(OrderType()<=OP_SELL && OrderSymbol()==Symbol()&& (OrderMagicNumber()==MAGICMA02 || OrderMagicNumber()==MAGICMA03))
            {                     
              if(OrderType()==OP_BUY)
                {
                  OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,GreenYellow);
                  GlobalVariableSet("FlagMode3Trade2",2);
                }
              if(OrderType()==OP_SELL)
                {
                  OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,GreenYellow);
                  GlobalVariableSet("FlagMode3Trade2",2);
                } 
            }
        }
    }
You can get Error # 1 when OrderModify attempts to replace the values already set with the same values. One or more values must be changed, then modification attempt can be repeated. (Definition of Error #1 - http://docs.mql4.com/trading/errors )

The only order related variable in question to change in code above is OrderTakeProfit(). This value is same as in order and needs to be changed before modify routine can work. I believe the Error # 1 stopped because the signal is now false to modify order and so the error stopped, but will reappear when signal is true again.

Wackena.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #39 (permalink)  
Old 12-01-2006, 01:15 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
i'm really new to this so it might sound stupid but... do you HAVE to modify TP? just don't... if that causes errors
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #40 (permalink)  
Old 12-01-2006, 10:02 AM
Senior Member
 
Join Date: Dec 2005
Posts: 130
Pecunia non olet is on a distinguished road
Quote:
Originally Posted by Ducati
I backtested on Alpari and on FXDD both with Alparis data and I get totally different results with the same settings. This is so frustrating.
Quote:
Originally Posted by Ducati
Anyone know why I have majorly different results on backtesting from different brokers, but with the same data?
A very wild guess: I seem to recall seeing somewhere that Alpari handles Sunday bars differently than FXDD. You might want to visually compare the price plots in both platforms, and especially compare the Sunday bars.

While you're at it, you could also compare a sample of bars numerically; Are the OHLC prices always the same?

How about the spreads in both platforms. Are they the same on the pairs you're testing?

Final wild guess: Could it be related to how the platforms define time of day?

Are you getting completely different entries and exits? Relatively small differences in data can 'compound' in effect over a large amount of data. A sort of intuitive test of whether a system is overly curvefitted to a data series is whether it can survive on a different series. However, generally speaking, I think it would be tough for a system to overcome something like vastly different Sunday bars, or very different platform handling of time of day. (Obviously this will vary depending on the type of system, and I'm generalizing here.)

In any event, after lots of backtesting in Tradestation I've formed the ironclad opinion/rule of thumb that for me, the only meaningful backtests and optimizations are those that are done on the data that you'll be trading on. There are a lot of possible 'gotchas' that can appear if you're testing with data that's different from what you'll be trading on, and some of those 'gotchas' are not immediately obvious. In this game I think you need as many of the odds as possible working in your favor. IMHO, optimizing on your own broker's data is an important step in that direction. [Theres a paradox here: You want your system to perform on unseen, different, future data, but ya gotta try to tune the system on data thats as similar as possible to the unseen future data...]

With MT I'll assume that you'll also want to test and optimize using the platform that you'll be trading with.

I hope some part of this helps!

Last edited by Pecunia non olet; 12-01-2006 at 10:35 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
ordermodify error 1, ordermodify error 130, support, phoenix


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dose it posible to creat any function of "mql code" posting in this forum? phoenix MetaTrader 23 09-23-2009 04:10 PM
"Gordago Stock Optimizer" - easily generates Expert Advisors De Vinci Tools and utilities 18 04-12-2009 02:01 AM
How to "teach" and to use the AI ("neuron") EA? danil Suggestions for Trading Systems 5 07-15-2008 05:26 PM


All times are GMT. The time now is 05:17 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.