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

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Sun May 12, 2024 8:03 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: No Trade! Only one buy!
PostPosted: Wed Jun 27, 2012 1:13 pm 
Offline

Joined: Sat Mar 26, 2011 3:56 am
Posts: 10
Hi Molanis!

I tried many times but the result is always the same!
Does not trade or buy only once.....

Please!!!!!! Can you help me?

Thank you in advance!


Attachments:
TREND 1.mq4 [6.44 KiB]
Downloaded 482 times
Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Wed Jun 27, 2012 2:25 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Post your mol (.mol) file from your Molanis/Strategy_Builder folder. It contains your trading diagram--conditions, etc.

You posted a custom indicator, so I assume you imported it into into SB. This indicator may have been designed to work with a separate dll file, making the code hard to decipher (see the many instances of "ibuf"). Also, there are some EMPTY_VALUES within the formulas which may be causing problems--hard to say if you only have half of the indicator files.

I would give up on this one and move on to something else. Better luck with molanisfx/admin.

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Thu Jun 28, 2012 6:17 am 
Offline

Joined: Sat Mar 26, 2011 3:56 am
Posts: 10
Does not have a separate DLL file.
There are 6 modes :0,1,2,3,4,5
The signals is Mode 4 and Mode 5.
But i see with indicator builder that
Mode 0>0000 is "buy"
and
Mode 1>0000 is "sell"
or
Mode 0>Mode1 "buy"
and
Mode 1>Mode 0 "sell"

I tried a few more(all Modes<100.000), but no result. Only one buy.

Thank you for your answer!


Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Thu Jun 28, 2012 11:01 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Ok, you reeled me back in. There is no dll so I investigated further. :geek:

Below are the empty values from your indicator code. The 2 modes that you are importing are directly linked to them. Note that there are no values present when you roll over the indicator lines on your chart. I suspect this is caused by the empty values as well. For a fix confirmed by molanisfx, go here: http://w.molanis.com/forum/viewtopic.php?p=3379#p3379. You must modify the indicator in MetaEditor.

SetIndexBuffer(4, g_ibuf_108);
SetIndexBuffer(5, g_ibuf_124);...

for (int...

g_ibuf_108... = EMPTY_VALUE;
g_ibuf_124... = EMPTY_VALUE;

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Fri Jun 29, 2012 12:29 pm 
Offline

Joined: Sat Mar 26, 2011 3:56 am
Posts: 10
Ok!
This is difficult for me ....but I will try.
Thank you!


Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Fri Jun 29, 2012 2:52 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Don't thank me yet. This may or may not work, as I'm really not much of a coder. :|

I modified your indi and the attached chart seems to confirm that each mode is now either at a given price or true zero. However the modes' values still do not populate when I roll my cursor over the lines. May be a separate issue with printing the values--not sure. IF this works, your conditons in SB will be Mode 4 > 0.0000 on one side of your diagram... Mode 5 > 0.0000 on the other side.

Attachment:
0_empty.gif
0_empty.gif [ 20.86 KiB | Viewed 6999 times ]


Rename the attached indi (Save As) if you don't want to overwrite your current version. And now this really is as far my brain will take me. Good luck.


Attachments:
TREND 1.mq4 [6.5 KiB]
Downloaded 492 times

_________________
I'm not a programmer, but I play one on TV.
Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Sun Jul 08, 2012 7:12 am 
Offline

Joined: Sat Mar 26, 2011 3:56 am
Posts: 10
Thank you very much for the answer!
Νot working again...
Do you have another idea? posting.php?mode=reply&f=3&t=1562#
i


Attachments:
trEnd1_2 EA.mol [6.63 KiB]
Downloaded 498 times
TREND 1_2.mq4 [6.5 KiB]
Downloaded 459 times
Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Sun Jul 08, 2012 4:14 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Try replacing your User Defined Number 0.0000 in the TA with a big number like 10,000.0000 (see http://w.molanis.com/forum/viewtopic.php?p=2956#p2956).

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Tue Jul 10, 2012 8:08 am 
Offline

Joined: Sat Mar 26, 2011 3:56 am
Posts: 10
The same result...


Top
 Profile  
 
 Post subject: Re: No Trade! Only one buy!
PostPosted: Tue Jul 10, 2012 9:28 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Ok... I'm thinking this is related to the lack of any numerical values being printed by your indi. Researching...

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009