Hello,

Simply because commission is a system constant (needs to be constant
because some exits happen in moments you don't know in advance,
for example exits generated by stops, and then commission must be known).

If you want dynamic commission (changed on bar by bar basis) you need to 
modify
buyprice/sellprice/shortprice/coverprice on bar by bar basis.


Best regards,
Tomasz Janeczko
amibroker.com

On 2010-05-09 00:49, whitneybroach wrote:
> Thanks.  Did that.
>
> Is there any reason why SetOption("CommissionMode") cannot be set more than 
> once in a formula?  Not that it makes sense to.  Just debugging here. :)
>
> --- In [email protected], Tomasz Janeczko<gro...@...>  wrote:
>    
>> Hello,
>>
>> You need to set commission MODE too.
>>
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>>
>> On 2010-05-08 22:19, whitneybroach wrote:
>>      
>>> Seeing Commission: 1 in detailed log but AFL contains 
>>> SetOption("CommissionAmount", 0 );
>>>
>>> ?
>>>
>>>
>>>
>>> ------------------------------------
>>>
>>> **** IMPORTANT PLEASE READ ****
>>> This group is for the discussion between users only.
>>> This is *NOT* technical support channel.
>>>
>>> TO GET TECHNICAL SUPPORT send an e-mail directly to
>>> SUPPORT {at} amibroker.com
>>>
>>> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
>>> http://www.amibroker.com/feedback/
>>> (submissions sent via other channels won't be considered)
>>>
>>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>>> http://www.amibroker.com/devlog/
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>        
>>      
>
>
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>
>
>    

Reply via email to