molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming
http://www.molanis.com/forum/

heiken ashi custom indicator
http://www.molanis.com/forum/viewtopic.php?f=14&t=651
Page 2 of 2

Author:  molanisfx [ Thu Nov 24, 2011 8:43 am ]
Post subject:  Re: heiken ashi custom indicator

I backtested it again and live tested it. It works fine.

EG 0 double303 (EURUSD,M1) 08:17:11 M-EURUSD *** EA created with Expert Advisor Visual Wizard 3.1 ***
CG 0 double303 (EURUSD,M1) 08:17:11 Broker =MetaQuotes Software Corp.
RL 0 double303 (EURUSD,M1) 08:17:11 Deposit currency =USD
PI 0 double303 (EURUSD,M1) 08:17:11 Trade server =MetaQuotes-Demo
LM 0 double303 (EURUSD,M1) 08:17:11 M-EURUSD *** EA starts running at: Server Time=2011.11.24 14:17:03 Terminal Time=2011.11.24 08:17:11
GS 0 double303 (EURUSD,M1) 08:17:11 M-EURUSD *** Running in a DEMO account ***
OJ 0 double303 (EURUSD,M1) 08:17:11 M-Account Equity=10842.5. Account Balance=10842.5. Account Free Margin = 10842.5. Account Leverage=100
CJ 0 double303 (EURUSD,M1) 08:17:11 M-EURUSD Warning: Could not get position volume. Assigning volume of 0
QI 0 double303 (EURUSD,M1) 08:17:11 M-Lot Information: Symbol=EURUSD. MIN LOT ALLOWED=0.01. MAX LOT ALLOWED=500. LOT SIZE IN BASE CURRENCY=100000
FG 0 double303 (EURUSD,M1) 08:17:11 M-Lot Information: Buying 1 lot in your Account is equivalent to buying 100000 of currency.
NJ 0 double303 (EURUSD,M1) 08:17:11 M-Lot Information: Buying the minimum lot size of 0.01 is equivalent to buying 1000 of currency.
PM 0 double303 (EURUSD,M1) 08:31:58 M-EURUSD Warning: Could not get position volume. Assigning volume of 0
GK 0 double303 (EURUSD,M1) 08:31:59 M-EURUSD Warning: Could not get position volume. Assigning volume of 0
FF 0 double303 (EURUSD,M1) 08:32:00 M-EURUSD Warning: Could not get position volume. Assigning volume of 0
CE 0 double303 (EURUSD,M1) 08:32:00 EURUSD volume=0 lotsize=0.01 sum=0.01 maxlotsize=1
KO 0 double303 (EURUSD,M1) 08:32:00 M-EURUSD Prepare BUY order EURUSD Buy Order.Price : Ask = 1.33856. Stoploss = 0.00000. Takeprofit = 0.00000 Lotsize=0.01000
GD 0 double303 (EURUSD,M1) 08:32:00 M-EURUSD triggered by if ( (iCustom_L3_Value[0] == 0.00000) && (iMACD_L2_Value[0] >= iMACD_R2_Value[0]) && (iMACD_L1_Value[0] > 0.00000) )
QH 0 double303 (EURUSD,M1) 08:32:02 M-EURUSD Position Executed Successfully! Position Type=POSITION_TYPE_BUY. Symbol=EURUSD
OE 0 double303 (EURUSD,M1) 08:32:02 M-EURUSD Price=1.33856 FillPrice=0.00000 Slippage=-1.33856
LH 0 double303 (EURUSD,M1) 08:32:02 M-EURUSD Account Equity=10842.5. Account Balance=10842.5. Account Free Margin = 10842.5
LD 0 double303 (EURUSD,M1) 08:32:03 M-EURUSD Warning: ARROW UP marker created at 1.33856 named Molanis1

Are you using win 7? If that is the case read this :http://www.molanis.com/forum/viewtopic.php?f=8&t=630&p=2333&hilit=win#p2333
You may have an old version of the indicator on your Windows Roaming directory. For win 7 is better to install mt5 in a directory that is not program files - this way the roaming won't affect you

Author:  paulhyland [ Thu Nov 24, 2011 12:17 pm ]
Post subject:  Re: heiken ashi custom indicator

I didn't no - the Heiken Ashi indicator that i'm using is already installed as a custom indicator in MT5 when downloaded from http://www.metaquotes.net/en/metatrader5. Should I not use this indicator?

I'm using Windows Vista. Both Molanis EA visual wizard and the Metrader 5 programs are installed directly on my C drive - I've had problems in the past when MT5 and the Molanis software are in different folders, so I saved both in C:/Molanis.

Incidentally, when I attach the EA in MT5 the journal says "expert loaded successfully", but then I immediately get the alerts.

A couple of things which may be contributing to the problem:

a) When I install MT5 many of the files and folders have a 64 suffix - such as "metaeditor64" and "mql564". In each case I have deleted the '64' from the end (as previously advised)

b) The 'create expert advisor for MT5' button under the menu: trading diagram/generate MQL5 code does not work - the EA never appears in the MT5 list of EA's even if I refresh the list or re-start MT5. I have reported this problem before and was told to use the 'copy EA code to clipboard option' instead. I then simply create a new EA directly in MT5 and overwrite the code with that generated by the Molanis EA visual wizard.

Author:  admin [ Fri Nov 25, 2011 7:12 pm ]
Post subject:  Re: heiken ashi custom indicator

Sometimes the included and the downloaded are different. For example to get all signals from the awesome indicator, you need to download it. The ones that comes with mt won't work. Our response is for the indicator you posted. You may want to use that one, put it in the indicator's folder.

It's good to have the installation on C:

For a)
It's ok - that is the way to go

For b)
You should install mt5 in c: (not in program files) and it will allow you to use the buttons to create the ea instead of copying the code.
The other solution is to change the permission in the mt5 folder as shown in the faq

Author:  paulhyland [ Sat Nov 26, 2011 6:57 pm ]
Post subject:  Re: heiken ashi custom indicator

I have fixed the issue with roaming files you get with Vista by reviewing the FAQ.
When MT5 is installed on C: the EA generation does not work.
When MT5 is installed on C:program files the EA code generation does work, however I still get the alerts:

"error creating handles for indicators - error 4802!!"

Author:  admin [ Sun Nov 27, 2011 3:25 pm ]
Post subject:  Re: heiken ashi custom indicator

Please review that you are using the right version of the indicator. (Easiest way is to use the one you posted)

Author:  paulhyland [ Sun Nov 27, 2011 5:12 pm ]
Post subject:  Re: heiken ashi custom indicator

I am - to be certain I copied the indicator from this posting and pasted it over the indicator in MetaEditor. I then re-compiled the EA in EAVW to be sure it's using the correct Heiken Ashi

Author:  molanisfx [ Sun Nov 27, 2011 10:48 pm ]
Post subject:  Re: heiken ashi custom indicator

Your issue is really odd. On our end it works fine (tested it in 2 machines)
Can you do one last thing? Get the indicator you posted, save it with a different name, and then use that name in the strategy builder.

Author:  paulhyland [ Mon Nov 28, 2011 11:23 am ]
Post subject:  Re: heiken ashi custom indicator

Nope - same old problem.
To be honest, I don't expect to pay $99 for some software which, after hours and hours of fiddling around, still doesn't work. From my perspective, I dont see how you can claim this software is suitable for release. It would be quicker for me to learn MQL!
Refund please?

Author:  molanisfx [ Mon Nov 28, 2011 1:34 pm ]
Post subject:  Re: heiken ashi custom indicator

I did some research on that error. Some users have reported the same issue in win 64 bits in the mql5 forum http://www.mql5.com/en/search#!keyword=4802 - that explains why it works fine in our testing (we do not have a 64 bits version to test). Initially it was a bug in mt5 but it was supposed to be fixed.
The solution seems to be:
-run the software using a especial parameter.
-or some other complex stuff
Please contact us by email to discuss about it.

Page 2 of 2 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/