waitPeriodMins/BarInterval And canTrade = 1) Then     ">

  
Wednesday, September 08, 2010     | Register
TradersStudio Forums
Subject: BarInterval

You are not authorized to post a reply.   
Author Messages
aldenstout
Posts:1

08-03-2006 12:25 AM Alert 

How do I translate "BarInterval" to TradersStudio? here is an example of the code I am working with, partially translated by migration...

barCount = barCount + 1

If (barCount > waitPeriodMins/BarInterval And canTrade = 1) Then
        If (MarketPosition = 0) Then
            intraTradeHigh = 0
            intraTradeLow = 999999
        End If

 

Also, is there an equivalent to the SetExitOnClose?

thanks,

alden

murray
Posts:519

08-03-2006 12:26 PM Alert 

GetTimeFrame function

Returns Time Frame of the market.

<FONT size=2>val = <B>GetTimeFrame</B> </FONT>

Remarks

This function returns time frame of the market. Possible values are:

Value Meaning
0 One Minute
1 Five Minutes
2 Ten Minutes
3 Fifteen Minutes
4 Thirty Minutes
5 FortyFive Minutes
6 Sixty Minutes
7 Daily
8 Weekly
9 Monthly
10 Quarterly
11 Yearly

Also if you place a order as closeexit , type as the parameter for ExitLong,ExitShort , where you would normally use Market,Stop it will cause the trades to exit at the end of the day.

Copyright © 2003 - 2006

You are not authorized to post a reply.



ActiveForums 3.6
TradersStudio® Copyright 2004-2010 All Rights Reserved   |  Privacy Statement  |  Terms Of Use