Login Page - Create Account

Support Board


Date/Time: Sat, 28 Dec 2024 22:20:33 +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