Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 20:43:46 +0000



Post From: Attaching position sizing for spreadsheet columns

[2016-01-12 19:30:30]
User596682 - Posts: 14
Hi, using subgraphs for buy/sell entries via spreadsheet columns, I need a code example of how to tie in maximum position for each column. i.e. max position 10 for K, maximum position 10 for M.

SCFloatArray SpreadSheetColKBuyArray;
  sc.GetStudyArrayUsingID(ISpreadSheetChartNo.GetStudyID(), 0, SpreadSheetColKBuyArray); //K

  SCFloatArray SpreadSheetColMSellArray;
  sc.GetStudyArrayUsingID(ISpreadSheetChartNo.GetStudyID(), 2, SpreadSheetColMSellArray); //M

I know you can use sc.CurrencyValuePerTick for different symbols can I just apply that th columns? thx
Date Time Of Last Edit: 2016-01-12 21:55:38