- Joined
- 31 May 2015
- Posts
- 17
- Reactions
- 0
SetOption("CommissionMode",3); // % per trade / Euro per trade/ Euro per contract
SetOption("CommissionAmount",2.00);
I back tested strategy on CFD DAX with 1 contract. The spread was around 1 point and commission around 1 point. I was thinking if below setting is valid:
Code:SetOption("CommissionMode",3); // % per trade / Euro per trade/ Euro per contract SetOption("CommissionAmount",2.00);
Thanks.
Just interested how you got the data for that contract james?
As I mentioned it's CFD DAX. It's available almost in every FX broker worldwide.
When we set commission e.g. 2 points, Amibroker presents in report 4 points. Someone knows if it's correct behavior that the value is always double?
You are aware that you do an entry trade and an exit trade, aren't you?
Each one representing half turn. Half turn + half turn = round turn.
So if your round turn commissions are 2 then set comm./trade to 1.
Now the final question is whether it is elementary school math or math which only Einstein could have solved? If the latter case should be true then we would have a big problem. Houston?
SetOption( "PriceBoundChecking", False ); // to exceed bar high/low
BuyPrice += Slippage; // add slippage to entries
SellPrice -= Slippage; // subtract slippage from exits
ShortPrice -= Slippage;
CoverPrice += Slippage;
SetOption( "PriceBoundChecking", False ); // make sure that AB will NOT trim at high/low
Slippage = ....;
if( Status( "action" ) == actionPortfolio ) {
bo = GetBacktesterObject();
bo.PreProcess(); // Initialize backtester
for( bar = 0; bar < BarCount; bar++ ) {
for( sig = bo.GetFirstSignal( bar ); sig; sig = bo.GetNextSignal( bar ) ) {
if ( sig.isLong )
sig.Price += IIf( sig.IsEntry(), Slippage, -Slippage );
else
sig.Price -= IIf( sig.IsEntry(), Slippage, -Slippage );
}
bo.ProcessTradeSignals( bar );
}
bo.PostProcess(); // Finalize backtester
}
if ( Name()== .... )
{
slippage = ...;
commission = ....;
BuyPrice = (BuyPrice+TickSize*slippage) + (1/PointValue)*commission;
SellPrice = (SellPrice-TickSize*slippage) - (1/PointValue)*commission;
CoverPrice = (CoverPrice+TickSize*slippage) + (1/PointValue)*commission;
ShortPrice = (ShortPrice-TickSize*slippage) - (1/PointValue)*commission;
}
else if( Name() == ... ) {
.....
Anyone think their test reports are being exported via a script in Amibroker? The test reports are stored in a folder and I don't know how secure that folder is from being accessed. Could be paranoid?
Okay thanks. Just suspicious of snoops.There is no data sent to AB servers at least.
Anyone think their test reports are being exported via a script in Amibroker? The test reports are stored in a folder and I don't know how secure that folder is from being accessed. Could be paranoid?
On a consistent winning account the broker could study the entry/exit patterns to either sabotage or profit from.I think the biggest concern is the brokers. They can scan through hudreds of thousands of accounts, and front run or piggyback the best of them. No one would know.
Imagine having access to some of IBs best individual accounts... $-printing machine.
On a consistent winning account the broker could study the entry/exit patterns to either sabotage or profit from.
Greetings of the day!
This is my first post on this site. I am very excited and happy to meet all you good people here.
Can Soembody help me with getting the Line numbers visible on the afl formula editor.
Thanks,
Neha
BuyStop = Ref(HHV(High,1),-1);
Buy=Ref(Close,-1)<Ref(Open,-1) AND Cross(High,BuyStop);
BuyPrice=Max(BuyStop,Low);
Sell = MA(C,5)<Close;
Sell=ExRem(Sell,Buy);
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?