stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

TMA_CG: EA to buy at support & sell at resistance
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3372
Page 10 of 30
Author:  bazze [ Wed Jan 15, 2014 12:10 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

I only trade on a $5000 demoacc.
That's the amount of $$$ I maybe will use on a liveacc.
Last three trades went into losses,version C. :arrrg: ...But,I'm still in profit,$204.62 :smile:
Author:  dudest [ Wed Jan 15, 2014 12:14 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

Geges » Wed Jan 15, 2014 3:51 am wrote:Hi SpiderX,

Ok-10-4 on that...

I guess I didn't acknowledge the gremlin as I should...

A $ saved is a $ earned :P
Those with "normal" accounts ( where 1 lot = $100,000 ) should not have ANY problem with lot-sizing ( this applies to most brokers ==> Axi, GP, Pepper, FinFx, HotForex, etc )

Given the fore-going, it seems this is an issue affecting mini accounts.

If anyone helps has faced this (huge lotsize), please chime in and confirm whether you are on a mini account.

Cheers
Author:  dudest [ Wed Jan 15, 2014 12:21 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

bazze » Wed Jan 15, 2014 3:10 pm wrote:I only trade on a $5000 demoacc.
That's the amount of $$$ I maybe will use on a liveacc.
Last three trades went into losses,version C. :arrrg: ...But,I'm still in profit,$204.62 :smile:

Last 3 trades should have should have been losses for *all* versions :)

Don't worry about it, ebbs and flows, patience is the name of the game.

Was the new a/c that opened the 50 lots also a $5k demo?

Just post me a screenshot of that 1 trade from the Trade History (if the other details I asked are a bother )

Cheers
Author:  SpiderX [ Wed Jan 15, 2014 12:44 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

Hi dudest,

Last 2 trades lost 30 pips....Orange boxes.
Think EA was trying to long in a down trend
Have you considered only to trade in direction of trend ?

Cheers
Author:  bazze [ Wed Jan 15, 2014 12:46 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

Sorry,dudest... I didn't see your questions before now :oops:
Here is the whole logfile(ver.C) for yesterday....As you see I have tested not only this EA,but I really hopes that you can use it anyway....Sorry again for the "delay" ;)
(Edit:Haven't uploaded such files before,that's the reason that I give you the whole file,I shall try to learn me how to copy/paste later :smile: ) Broker: Sensus...Acc.size:$5000...Leverage: 1:200
Author:  bazze [ Wed Jan 15, 2014 2:50 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

My account are shrinking,four losses in a row :arrrg: But,still on the bright side :lol: (ver.modB.)
Author:  SpiderX [ Wed Jan 15, 2014 3:31 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

Hi dudest,

Was zooming out the chart to see the pattern in losing trades for TMACG...note the purple circles.
Then it occured..."there should be a streak of losing sell trades on 10 Jan if this had started earlier"...Yellow Circle.
So went to check your myfxbook.....and seems that this guess was correct.

Think TMACG will have a string of losing trades if price stagnates on one side of the band during a trend.

Cheers
Author:  dudest [ Wed Jan 15, 2014 3:34 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

bazze » Wed Jan 15, 2014 3:46 pm wrote:Sorry,dudest... I didn't see your questions before now :oops:
Here is the whole logfile(ver.C) for yesterday....As you see I have tested not only this EA,but I really hopes that you can use it anyway....Sorry again for the "delay" ;)
(Edit:Haven't uploaded such files before,that's the reason that I give you the whole file,I shall try to learn me how to copy/paste later :smile: ) Broker: Sensus...Acc.size:$5000...Leverage: 1:200
OK, so I downloaded Sensus Empty4 and ran some tests against my AxiTrader Empty4.

AxiTrader:
# EURUSD chart: MODE_LOTSIZE returns 100,000 ==> OK ( 1 std lot = 100,000 units of base currency )
# XAUUSD chart: MODE_LOTSIZE returns 100 ==> OK ( 1 std lot of gold = 100 troy ounces )

Sensus:
# EURUSD chart: MODE_LOTSIZE returns: 100,000 (standard)
# XAUSUD chart: MODE_LOTSIZE returns: 1 (NOT standard)[ i.e, 1 lot here = 1 troy ounce (100 times less than a standard a/c) ]

==

Case: ( using code from CalculateLotSize ). Account balance: $5k

Code: Select all

double FreeMargin = AccountBalance(); // don't worry about FreeMargin being used to ref to A/c Bal
----------> Std account: $5k
----------> Mini account: $5k

Code: Select all

double TickValue = MarketInfo(Symbol(),MODE_TICKVALUE) ;
----------> Std account: $1 per tick ( tick = 0.01 of price quote = 1 point )
----------> Mini account: $0.01 per tick ( tick = 0.01 of price quote = 1 point )

Code: Select all

double LotStep = MarketInfo(Symbol(),MODE_LOTSTEP);
----------> Std account: 0.01 lots (1000 units)
----------> Mini account: 0.01 lots (1000 units)

Code: Select all

double SLPts = StopLossPips /PFactor;
----------> Std account: 3.0
----------> Mini account: 3.0

Code: Select all

   
SLPts /= Point;  //No idea why *= factor does not work here, but it doesn't
----------> Std account: 3 / 0.01 = 300
----------> Mini account: 3 / 0.01 = 300

Code: Select all

   
double Exposure = SLPts * TickValue; // Exposure based on 1 full lot
----------> Std account: 300 * 1 = 300
----------> Mini account: 300 * 0.01 = 3

Code: Select all

double AllowedExposure = (FreeMargin * Risk) / 100;
----------> Std account: ( $5000 * 3 ) / 100 = $150
----------> Mini account: ( $5000 * 3 ) / 100 = $150

Code: Select all

   
int TotalSteps = ((AllowedExposure / Exposure) / LotStep);
----------> Std account: (150 / 300) / 0.01 = 50
----------> Mini account: (150 / 3) / 0.01 = 5000

Code: Select all

double Lots = TotalSteps * LotStep;
----------> Std account: 50 * 0.01 = 0.5 lots
----------> Mini account: 5000 * 0.01 = 50 lots


Which adds up coz 1 standard lot = 100 Sensus lots
==> 100 * 0.5 std lots = 50 Sensus lots


++++++++++++++++


So all is well in LotSize land.

@Bazze: Your broker says you are trading "50 lots" but they are not "50 standard lots", they basically work out to 0.5 standard lots
[ I had other not so pleasant words for brokers such as Sensus that add complexity and confusion to a straight-forward spec, but that's for another day... ]

At the end of the day, we are all risking 3% of our accounts.

Conclusion: the lot sizing is working correctly (regardless or std or mini accounts)

Cheers
Author:  dudest [ Wed Jan 15, 2014 3:45 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

SpiderX » Wed Jan 15, 2014 3:44 pm wrote:Hi dudest,

Last 2 trades lost 30 pips....Orange boxes.
Think EA was trying to long in a down trend
Have you considered only to trade in direction of trend ?

Cheers
Hey SpiderX!

I'm loving your questions and feedback!, this is what makes for great improvement.

Yes, I have considered trading in the direction of the trend.

And there's a price to pay:
--> added complexity: trend filter, etc
--> alot of missed trades ( right now price is down, but notice it's not getting to upper boundary ).

There's also a price to pay for taking ALL trades (as we are now), one of which is what we are seeing (streaks of losses). Truth is: EVERY method/system has losing streaks, which is why we're risking only a small % per trade.

But that said, I see what you mean and there's room for improvement :)

1) The LibCSS slope value is keeping us out of sudden rough movements, but not out of slow ones (like now)

2) I'm going through the loss trades (today's and earlier) to see what they had in common. As always, I'm looking for a simple solution (simple and elegant --> even better). Notice price at least gets to the area of the MIDDLE BAND. That's something to explore right there!

More in answer to your next post.

Cheers!
Author:  vadlapatis [ Wed Jan 15, 2014 3:47 pm ]
Post subject:  Re: TMA_CG: EA to buy at support & sell at resistance

Hello Every 1

today trades with TMA_CG

LIVE
tma_cg.PNG

DEMO
All times are UTC Page 10 of 30