Flying Slope auto-trading EA
-
fxshadow
- Trader
- Posts: 61
- Joined: Tue Nov 15, 2011 11:46 pm
Re: Flying Slope auto-trading EA
Does anyone have 1C also.
-
moondog
- Posts: 4
- Joined: Tue Feb 14, 2012 5:50 am
Re: Flying Slope auto-trading EA
Fxshadow
Here is what looks like a clean version of 1c.
Anyway check it out.
Moondog
Here is what looks like a clean version of 1c.
Anyway check it out.
Moondog
You do not have the required permissions to view the files attached to this post.
-
harry45
- Trader
- Posts: 158
- Joined: Fri Nov 18, 2011 11:36 am
- Location: Russia,St.Petersburg
Re: Flying Slope auto-trading EA
Here you areakara wrote:Hi Harry45, can you share the version 1B, I seem to have overwritten mine.
thanks
You do not have the required permissions to view the files attached to this post.
-
jiaxingx
- Trader
- Posts: 43
- Joined: Fri Jun 22, 2012 10:45 am
-
akara
- Trader
- Posts: 26
- Joined: Sat Dec 03, 2011 10:34 am
Re: Flying Slope auto-trading EA
Thanks Harry, its really in hot demand.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: Flying Slope auto-trading EA
Gary, I just had an idea.garyfritz wrote:If risk-based sizing means "calculate the lot size that, given my current SL, would risk X% of my account," then that's the way I **ALWAYS** trade with real money. That's how you implement basic position-sizing strategies like fixed-fractional sizing. If it wasn't supported in an EA, I'd try to fake it with manually-specified lotsizes, but that only works if you know the SL ahead of time.
OK, then I wouldn't see it either.Not a clue Gary. Also, I am not experiencing a problem here but I have a modern machine with lots of memory.
If anybody who's hitting this CPU issue wants to try an experiment: try the attached. I changed it to only delete/recreate the objects if the price changes. I also completely removed the SendLots calculation, since it's a local variable and it never gets accessed after it's calculated. (Steve, am I missing something there??)
No promises since I can't test it, but see if it helps... (and if it works!!)
I declared OldBarsTime as a datetime. I see from CtapMql4 Help that this is, "Its internal representation is a long integer number of 4 bytes.". Bearing in mind that I do not know the difference between an 'integer' and a 'long integer', is it possible that
Code: Select all
if (OpenTrades > 0 && StackDistancePips > 0 && OldBarsTime != iTime(NULL, LowerTimeFrame, 0))
{
LookForStackTradingOpps();
}//if (OpenTrades > 0)
How about trying declaring OldBarsTime as an int instead of a datetime?
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
garyfritz
Re: Flying Slope auto-trading EA
"long integer" is 32 bits, "integer" is 16 bits. So a "long integer" can hold a bigger number (about 2 billion vs. 65000). But I don't think MQL supports 16-bit integers. An "int" is a 32-bit integer.
I would keep OldBarsTime as a datetime, since that's what iTime returns. Keep the types matched up to give Empty4 the fewest opportunities to screw it up.
Don't worry about OldBarsTime being off by a gazillionth. It's an integer value, counting the seconds since 1/1/1970. It doesn't do gazillionths.
I would keep OldBarsTime as a datetime, since that's what iTime returns. Keep the types matched up to give Empty4 the fewest opportunities to screw it up.
Don't worry about OldBarsTime being off by a gazillionth. It's an integer value, counting the seconds since 1/1/1970. It doesn't do gazillionths.
-
jiaxingx
- Trader
- Posts: 43
- Joined: Fri Jun 22, 2012 10:45 am
Re: Flying Slope auto-trading EA
In the function "bool LookForTradeClosure(int ticket)"
if (HtfSlopeTrend == buyhold) return;//Leave open and hope for stack opps
I think that maybe return "false",anyone think that right?
if (HtfSlopeTrend == buyhold) return;//Leave open and hope for stack opps
I think that maybe return "false",anyone think that right?
-
garyfritz
Re: Flying Slope auto-trading EA
Yes, it's a bool function. It should return true or false.
I suspect that MQL defaults to "false" if you don't pass a value, but it's not a good idea to assume. Especially with MQL.
I suspect that MQL defaults to "false" if you don't pass a value, but it's not a good idea to assume. Especially with MQL.
-
jiaxingx
- Trader
- Posts: 43
- Joined: Fri Jun 22, 2012 10:45 am
Re: Flying Slope auto-trading EA
Hi,garyfritz
I see many people use "OOTB setting" for testing , I do not know what the mean of "OOTB",
Is that default setting?
thanks!
I see many people use "OOTB setting" for testing , I do not know what the mean of "OOTB",
Is that default setting?
thanks!
