• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 11:29am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:29am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Questions for Prospective Broker Every Trader Can Ask Post your response 1 reply

Making Money and the Most Basic of All Basic Strategies 42 replies

Very Basic Newbie Question 3 replies

Here to help....Feel free to ask questions. 5 replies

questions to ask your broker 2 replies

  • Commercial Content
  • /
  • Reply to Thread
  • Subscribe
  • 17
Attachments: Epsilon Megastar swing/fib trading. Ask your newbie/basic questions here
Exit Attachments
Tags: Epsilon Megastar swing/fib trading. Ask your newbie/basic questions here
Cancel

Epsilon Megastar swing/fib trading. Ask your newbie/basic questions here

  • Last Post
  •  
  • 1 2Page 345 6
  • 1 2Page 34 6
  •  
  • Post #41
  • Quote
  • Jun 5, 2010 10:40pm Jun 5, 2010 10:40pm
  •  Piet411
  • | Joined Mar 2010 | Status: Member | 8 Posts
Hi Steve,

I added a function and call from the init section to the Simone.mq4. This is a piece of code I usually use to get a fixed magic per pair.
Hopefully this is what you are looking for.

Gr. Piet



Quoting SteveHopwood
Disliked
I cannot get this to work. Can you have a look at the code please, and see what I am doing wrong?

Ignored
Attached File(s)
File Type: mq4 Simone (with fixed magicnumber).mq4   44 KB | 249 downloads
 
 
  • Post #42
  • Quote
  • Jun 5, 2010 11:44pm Jun 5, 2010 11:44pm
  •  grandehombre
  • | Joined Apr 2010 | Status: Member | 53 Posts
Hi Steve,

You need to move the #include to just above init(), specifically *after* all the vars it references (MagicNumber etc) are declared.

Also, 'firstTime' is already declared in the include.

Cheers,
Nick


Inserted Code
//bool           firstTime;

#include <simone stuff.mqh>//grandehombre's library for preserving user's mn and trading times

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()


Quoting SteveHopwood
Disliked
I cannot get this to work. Can you have a look at the code please, and see what I am doing wrong?

Ignored
 
 
  • Post #43
  • Quote
  • Jun 6, 2010 12:49am Jun 6, 2010 12:49am
  •  grandehombre
  • | Joined Apr 2010 | Status: Member | 53 Posts
Here is another include file I use that helps manage 4 and 5-digit conversions, as well as order placement checks.

Make a call to calcDigits() inside your init().
The attached mqh file contains info on how to use the variables that the above call sets up.

Briefly,


Inserted Code
//To convert pips to price (or stoploss or takeprofit),
double stopLoss = OrderOpenPrice() -  (25[b] * pips2dbl[/b]);// 25 pip stop

//To find diff between 2 prices, in pips
int currentPipsInProfit = (Bid - OrderOpenPrice()) * [b](1 / pips2dbl)[/b]; // for a BUY order


So, in the case of an EA that looks after open orders (moving SL, taking profits etc), it is easier to simply calculate the PipsInProfit and then just treat them as a simple number, i.e after a profit of 25 pips, take x lots as profit becomes
Inserted Code
int currentPipsInProfit = (Bid - OrderOpenPrice()) * [b](1 / pips2dbl)[/b]; // for a BUY order

if (currentPipsInProfit > 25)
{
  // get me some ouzo!
}

No need to worry about 4, 5 or 6 digit brokers.

The attached screenshots show the results.

------
The attached mqh also includes the function _IsTradeAllowed().
Have a look in the file for more info on how it works.

Inserted Code
    // dummy (single iteration) loop to allow multiple exits to a single point in code
for(int dummyCtr=0;dummyCtr == 0; dummyCtr++)
{
// check whether trade context is free
int tradeAllow = _IsTradeAllowed();
if(tradeAllow < 0)
{
retCode = "Could not modify order #" + orderNumber + ". Trading context is not free. Code: " + tradeAllow;
break;
}

if(tradeAllow == 0)
{
RefreshRates();
// recalculate the Take Profit and Stop Loss levels
}

res = OrderModify(orderNumber, OrderOpenPrice(), newSL, OrderTakeProfit(), 0, whatColor);
if (!res)
{
err = GetLastError();
retCode = ErrorDescription(err);
if (err <= ERR_NO_RESULT)
{
retCode = "";
res = true;
break;
}
}
            } // for....

      // Common exit point from above loop. Lets put cleanup code here
      // blah blah

    

     // The function should only exit from [b]one[/b] point.
     return(0);
}

Finally,
The digit-handler code came from http://codebase.mql4.com/6502
The ok-to-order code came from http://articles.mql4.com/141

Cheers,
Nick
Attached Images
Attached File(s)
File Type: mqh nicks std include.mqh   5 KB | 184 downloads
 
 
  • Post #44
  • Quote
  • Jun 6, 2010 10:51am Jun 6, 2010 10:51am
  •  Itchy4Pips
  • | Joined Apr 2010 | Status: Member | 20 Posts
great job people. i am not quite ready to turn my money over to a robot. My question is this. Can the robot be made to function as an indicator and just place enter and exit trade arrows on the chart and allow for manual trading? I realize this would not be a robot but more like a robotic indicator. This would allow the trader to decide if he agrees and add this information to his arsenal.
 
 
  • Post #45
  • Quote
  • Jun 6, 2010 10:14pm Jun 6, 2010 10:14pm
  •  pietpatat
  • | Joined Feb 2010 | Status: Member | 16 Posts
I haven't had much sleep so there is a good chance I'm wrong, but I had to point this out. In the user guide it sais;

"Trading hours: These are 24 hour clock settings..."
◦ start_hourm = 7; morning start trading.
◦ end_hourm = 12; morning end trading.
◦ start_houre = 12; afternoon start trading.
◦ end_houre = 18; afternoon end trading.

So it starts at 7, stops at 12. Then inmidiatly starts again at 12 and goes on until 18.00? So it pretty much trades non stop from 7.00 to 18.00?
Someone please explain this to me.


Quoting Itchy4Pips
Disliked
great job people. i am not quite ready to turn my money over to a robot. My question is this. Can the robot be made to function as an indicator and just place enter and exit trade arrows on the chart and allow for manual trading? I realize this would not be a robot but more like a robotic indicator. This would allow the trader to decide if he agrees and add this information to his arsenal.
Ignored
There is an option on mt4; Ask for manual confirmation.
 
 
  • Post #46
  • Quote
  • Jun 6, 2010 10:55pm Jun 6, 2010 10:55pm
  •  Pipstrumpf
  • | Joined Mar 2010 | Status: Member | 408 Posts
Quoting pietpatat
Disliked
I haven't had much sleep so there is a good chance I'm wrong, but I had to point this out. In the user guide it sais;

"Trading hours: These are 24 hour clock settings..."
◦ start_hourm = 7; morning start trading.
◦ end_hourm = 12; morning end trading.
◦ start_houre = 12; afternoon start trading.
◦ end_houre = 18; afternoon end trading.

So it starts at 7, stops at 12. Then inmidiatly starts again at 12 and goes on until 18.00? So it pretty much trades non stop from 7.00 to 18.00?
Someone please explain...
Ignored
Thats right but be aware that the time inputs are referring to your PC's clock and not the MT4 brokers clock. So you may have to ajust parameters (clock times) accordingly to your actual location.
Manual confirmation means that if set to true the EA does not enter a trade automatically.
Hope this will help.
 
 
  • Post #47
  • Quote
  • Jun 7, 2010 5:50am Jun 7, 2010 5:50am
  •  astral77
  • | Joined Nov 2009 | Status: Member | 1,196 Posts
Quoting Pipstrumpf
Disliked
Thats right but be aware that the time inputs are referring to your PC's clock and not the MT4 brokers clock. So you may have to ajust parameters (clock times) accordingly to your actual location.
Manual confirmation means that if set to true the EA does not enter a trade automatically.
Hope this will help.
Ignored
Yes you are right regarding the PC Clock. The trade times input in the EA is split between am(0 to 12) and pm(12 to 24). therefore if you want the EA to trade between 7am to 4pm as is the case in this BOT the input (which is the default by the way) should be 7 to 12 and 12 to 16.

If you are in a different time zone and your pc clock is according to that time zone then you should adjust accordingly (e.g. if you are in New York which is GMT-5 then the above should be Morning hours 0 to 0 and evening hours 12 to 21. I hope this helps.

Kind regards
 
 
  • Post #48
  • Quote
  • Edited 8:57am Jun 7, 2010 7:42am | Edited 8:57am
  •  desi
  • | Joined Aug 2008 | Status: Member | 161 Posts
Any trades today for EURUSD AND GBPJPY?
I have all the fibs in place on chart since more than 2 hours now. Simone in expert folder and compiled. Also Simon Stuff in the expert/include folder, but still no trades after 4 AM EST. Am I missing something?

Edit: GBPJPY trade taken, buy 133.49.
 
 
  • Post #49
  • Quote
  • Jun 7, 2010 10:44am Jun 7, 2010 10:44am
  •  desi
  • | Joined Aug 2008 | Status: Member | 161 Posts
Quoting desi
Disliked
Any trades today for EURUSD AND GBPJPY?
I have all the fibs in place on chart since more than 2 hours now. Simone in expert folder and compiled. Also Simon Stuff in the expert/include folder, but still no trades after 4 AM EST. Am I missing something?

Edit: GBPJPY trade taken, buy 133.49.
Ignored
Lot 0.02 Buy 133.49, SL 131.69, TP 135.43
Lot 0.01 closed 133.50
Lot 0.01 closed 133.50
Profit 1+1 = 2 pips??
Error: Half close failed with error[4108]: invalid ticket
What went wrong here?
 
 
  • Post #50
  • Quote
  • Jun 7, 2010 11:18am Jun 7, 2010 11:18am
  •  tinear10
  • | Joined Feb 2010 | Status: Member | 15 Posts
Hello Steve,

Thank you again for all of your hard work. Much appreciated. Are you using Simone with or without the RSI filter? I noticed in the main thread you mrntioned RSI may keep us out of some trades that Simone may have otherwise taken. Thank you sir
 
 
  • Post #51
  • Quote
  • Jun 7, 2010 11:39am Jun 7, 2010 11:39am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting tinear10
Disliked
Hello Steve,

Thank you again for all of your hard work. Much appreciated. Are you using Simone with or without the RSI filter? I noticed in the main thread you mrntioned RSI may keep us out of some trades that Simone may have otherwise taken. Thank you sir
Ignored
I put her on my live IBFX account today with the trend filter turned on. It remains to be seen whether this is helpful or not.

____________________________________________________________

I had intended closing this thread but I see it still has uses, so I shall leave it open.

 
 
  • Post #52
  • Quote
  • Jun 7, 2010 11:39am Jun 7, 2010 11:39am
  •  pietpatat
  • | Joined Feb 2010 | Status: Member | 16 Posts
Quoting astral77
Disliked
Yes you are right regarding the PC Clock. The trade times input in the EA is split between am(0 to 12) and pm(12 to 24). therefore if you want the EA to trade between 7am to 4pm as is the case in this BOT the input (which is the default by the way) should be 7 to 12 and 12 to 16.

If you are in a different time zone and your pc clock is according to that time zone then you should adjust accordingly (e.g. if you are in New York which is GMT-5 then the above should be Morning hours...
Ignored
My VPS is in New York ( GMT-5 ). So I should just -5 the default settings ( which are in GMT );
2 - 7 & 7 - 13. Not the same time settings you described.
 
 
  • Post #53
  • Quote
  • Jun 8, 2010 5:42pm Jun 8, 2010 5:42pm
  •  MurphyMan
  • | Joined Sep 2009 | Status: Rule #1... Don't lose your pips | 197 Posts
I've had Simone's fibs up all day and suddenly they shrunk! The Intraday is all out of whack.

What the heck did I do? Any ideas?
Attached Image (click to enlarge)
Click to Enlarge

Name: chart.gif
Size: 30 KB
 
 
  • Post #54
  • Quote
  • Jun 9, 2010 3:20am Jun 9, 2010 3:20am
  •  pret
  • | Joined Jan 2009 | Status: Member | 183 Posts | Online Now
I am a bit confused to which is the latest EA to download .The one in the first post or the KH Simone v2.1 in the last post
Thank you
 
 
  • Post #55
  • Quote
  • Jun 9, 2010 5:33am Jun 9, 2010 5:33am
  •  knukk
  • | Joined Feb 2010 | Status: Just Do It | 62 Posts
Quoting pret
Disliked
I am a bit confused to which is the latest EA to download .The one in the first post or the KH Simone v2.1 in the last post
Thank you
Ignored
Steve updates the first post with the latest improvements. KingHigh (which is what KH stands for) proposed a change which Steve incorporated into his official code. The updated version is included in the first post, so use that one.

:nerd:
 
 
  • Post #56
  • Quote
  • Jun 9, 2010 6:15am Jun 9, 2010 6:15am
  •  pret
  • | Joined Jan 2009 | Status: Member | 183 Posts | Online Now
Quoting knukk
Disliked
Steve updates the first post with the latest improvements. KingHigh (which is what KH stands for) proposed a change which Steve incorporated into his official code. The updated version is included in the first post, so use that one.

:nerd:
Ignored
Thank you
 
 
  • Post #57
  • Quote
  • Jun 9, 2010 5:22pm Jun 9, 2010 5:22pm
  •  TallCoolOne
  • Joined May 2010 | Status: Member | 499 Posts
Hi Gang,

I've been testing with Simone, and I think FIFO is causing me issues. I'm in the US and my broker is Alpari US. When Simone opens a trade with .02 lots for the first trade, that works fine. But if the half of the first trade is closed and another trade is opened with .02 lots, Simone may try to close half of the second trade .01 lot before it has close the .01 lot from the first trade and my broker won't allow that. Is there a way we could close the the 2nd half of the first trade before we try to close the 1st half of the second trade? Does that make sense. Also, is there a better way to move the stop loss down for sells or up for a buys as the trend progresses and we keep taking more and more trades. It seems like the last trade can get caught using a very large stop loss and when the trend reverses, we get caught with a large loss. Any ideas on this? I'm not a coder, but when you back test this in visual you can see how this occurs.

Everyone, thanks so much for all your hard work on this EA. Steve I'm really impressed with this. I hope we can keep improving it.

Thanks - TallCoolOne
 
 
  • Post #58
  • Quote
  • Jun 10, 2010 3:49am Jun 10, 2010 3:49am
  •  scatat
  • | Joined Apr 2010 | Status: Member | 10 Posts
Hi there

I think there is a bug at work somewhere because the latest version of Simone is not drawing the intraday or breach fibs consistently any more.

I'll post moore details if required, but I'm certain that everyone should have noticed this by now on their own charts. Either that or they just don't know the SCFM.

regards

Stephen
 
 
  • Post #59
  • Quote
  • Jun 10, 2010 7:59pm Jun 10, 2010 7:59pm
  •  Mauricio
  • | Joined Feb 2009 | Status: Member | 23 Posts
Hi Argon, and all , I did try to post it in the forum, but wasn;t allowed, I had the same problem as you.

Whe download simone stuff, appears a box that says name, and bellow that choose all types of files , just did it for me.
Regards.
 
 
  • Post #60
  • Quote
  • Edited 3:43am Jun 11, 2010 2:34am | Edited 3:43am
  •  mvdkem
  • | Joined Jun 2010 | Status: Junior Member | 2 Posts
Hi,
I have been studying forex for about 2 months now, and have read through simone's thread and have read the thread about the EA for this system.
Now I have a question about something I have been wondering about:
Is it possible to use metatrader with a(ny) broker? If so, how?
If it's not possible, how can you incorporate the EA for this system in a broker's trading platform?

I asked this question in simone's thread, but they redirected me to this thread. I hope someone can help me over here.

Thanks in advance

EDIT: Never mind, I think I found a broker which allows me to trade with metatrader
 
 
  • Commercial Content
  • /
  • Epsilon Megastar swing/fib trading. Ask your newbie/basic questions here
  • Reply to Thread
    • 1 2Page 345 6
    • 1 2Page 34 6
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023