PureBytes Links
Trading Reference Links
|
Try
Timenum()>151500
--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com
2008/6/14 Louis Préfontaine <rockprog80@xxxxxxxxx>:
> Stupid question here: how do you change 3 PM for 3:15PM?
>
> I tried EndOfDay = Hour() > 15:15;
>
> and it wasn't a success...
>
> Thanks,
>
> Louis
>
> 2008/6/13 Tomasz Janeczko <groups@xxxxxxxxxxxxx>:
>>
>> IIf(Cond5,1,0)) should be ORED
>>
>> EndOfDay = Hour() > 15;
>>
>> Sell = NormalExitCode OR EndOfDay;
>>
>> Alternatively you may use IIF but in different nesting order:
>>
>> Sell = IIF( Cond5, 1, IIf( Short, sigScaleOut, 0 ) );
>>
>> BTW: you may consider using AFL Editor Tools->Prettify function to add
>> spaces around
>> braces and functions as extra spaces make code MUCH more readable to other
>> people.
>>
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>>
>> ----- Original Message -----
>> From: Chris DePuy
>> To: amibroker@xxxxxxxxxxxxxxx
>> Sent: Friday, June 13, 2008 10:28 PM
>> Subject: [amibroker] sigscaleout
>> I want to scale into positions and scale out of positions during the day,
>> but at the end of the day, I'd like to blow out all longs and all shorts.
>>
>> Why does this not work??
>>
>> Cond5 = Hour() > 15 ;
>> Buy = IIf(Buysignal AND NOT Hour() ==16,sigScaleIn,O);
>> Short = IIf(Shortsignal,sigScaleIn,0);
>>
>> Cover=IIf(Buy ,sigScaleOut,IIf(Cond5,1,0));
>> Sell=IIf(Short,sigScaleOut,IIf(cond5,1,0));
>
>
------------------------------------
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|