Register Login
Forums    February 6, 2012
TradersStudio Forums
BarInterval
Last Post 08-03-2006 12:26 PM by mur ang. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
John Stout
New Member
New Member
Posts:1

--
08-03-2006 12:25 AM

    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

    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    08-03-2006 12:26 PM

    GetTimeFrame function

    Returns Time Frame of the market.

    val = GetTimeFrame

    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.


     TradersStudio, Inc. ® Copyright 2004-2012 All Rights Reserved   Terms Of Use  Privacy Statement