Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

buying power and cash stops/targets

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    buying power and cash stops/targets

    Is there a buying power property available?

    So it is possible for any pair to do similar for any pair
    Direct - GBPUSD
    Indirect - USDJPY
    Cross - EURGBP

    SetStopLoss(BuyingPower/riskFactor)
    Example
    SetStopLoss(1000,000 * 2.5/100)

    Failing that for each pair type we have to calculate the pip value
    then the amount of pips available to trade with
    and then work out the cash value again going back to use a currency based stop or target. All of which is a different formula for each pair type
    MicroTrends
    NinjaTrader Ecosystem Vendor - micro-trends.co.uk

    #2
    Hello,

    Im happy to say there is, however its account wide buying power downloaded from the connection. Not all connections support this however.



    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      That's certainly handy - but buying power needs to available in realtime and backtesting for each pair type -

      or a setStopLoss methods that takes the local account cash values and automatically converts it all etc.

      It is easy enough to manually calculate which is fine for Direct and Indirect but when you are doing this for cross pairs it gets a little more assumptive and complex when backtesting... as you need to look up other pairs to get values for conversion and so therefore have the extra data available and the bars in memory etc but that is all possible ofcourse.

      scenario:
      Context of question:
      Using fixed fractional position sizing for the GBPUSD is easy

      When the risk factor is 2.5% of the account cash value 1000
      the max risk size = 25
      if the stop only needs to be 10 ticks @ 1$per tick
      that is 2 positions @ 10,000 lot size

      if stop = 5 ticks
      that is 5 positions
      however the margin requirement max position size adjusts our position size back to
      3 positions at around $320 per lot of 10,000

      Using fixed fractional position sizing for the USDJPY is easy
      The margin is fixed by the leverage and lotsize.
      The tickvalue is not constant - so all you do is calculate the stop in ticks to cash
      and verify it is <= 2.5 and check the position size multiple against the margin requirement and cash size

      For cross pairs - that is not so easy

      I have found it easier for now to not offer any pre order submission margin req validation, position sizing or money management based on cross pairs for now - but any additions to the following welcome.


      For direct and indirect it is easy and fast - but how do we do it for cross pairs in NT?

      pipvalue
      direct USD
      tickValue = mMLotSize * TickSize;

      indirect USDJPY
      tickValue = ((TickSize/GetCurrentAsk()) * LotSize);

      CrossPair EURUSD
      tickValue=?

      Margin Requirement Per Lot

      Direct GBPUSD
      marginReq=(LotSize * GetCurrentAsk() * ((double)1/Levarage));

      Indirect USDJPY
      marginReq= LotSize/Levarage;

      CrossPair EURUSD
      marginReq=?

      Question:
      What would be a good formula/ snippet for CrossPairs E.G EURGBP for calculating margin requirement and ticksize?
      Last edited by MicroTrends; 12-17-2010, 02:16 PM. Reason: spelling and format!
      MicroTrends
      NinjaTrader Ecosystem Vendor - micro-trends.co.uk

      Comment


        #4
        Hello,

        Ok thanks, I will pass this on to management.

        As far as a good formula unfortunately I am not aware of any. However I will pass up to Josh to see if he has any comments.

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X