ThinkScript Portfolio Functions Broken? - ThinkOrSwim Programming | futures io social trading
futures io futures trading


ThinkScript Portfolio Functions Broken?
Updated: Views / Replies:201 / 1
Created: by kula Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

ThinkScript Portfolio Functions Broken?

  #1 (permalink)
Trading Apprentice
Houston Texas
 
Futures Experience: Beginner
Platform: TOS
Favorite Futures: Crude CL
 
Posts: 2 since Sep 2016
Thanks: 0 given, 0 received

ThinkScript Portfolio Functions Broken?

Hi,

Has anyone had success with the ThinkScript Portfolio functions? GetAveragePrice(), GetQuantity(), or GetOpenPL()? TOS keeps giving me no such function errors when trying to use them.

I'm trying to make a simple script on a watchlist or marketwatch column that takes the OpenPL / Trade Price * 100 so I can easily see the % of profits for my covered calls and naked puts so I know if I should close them out if I get good gains and have plenty of DTE. Problem is that I can't seem to get any qty, price, or PL data from my current positions (though I can get all kinds of other data). Is this possible or does TOS have these functions locked down? If so, does anyone know of a clever workaround?

Any help would be greatly appreciated! Thanks!

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Houston Texas
 
Futures Experience: Beginner
Platform: TOS
Favorite Futures: Crude CL
 
Posts: 2 since Sep 2016
Thanks: 0 given, 0 received

hmmmm

Ok, I figured out that the portfolio functions only work in custom studies for the chart. I've got my percentage showing as a label on the chart, but anyone know of a way to get it into a column on the watchlist or marketwatch grids? I can't use those functions or my custom study outside of the chart for some reason. It's silly, because I can add the individual fields that I want to the MarketWatch grid, I just can't use any of those fields for calculation.


Last edited by kula; October 4th, 2016 at 10:24 AM.
Reply With Quote

Reply



futures io > > > > > ThinkScript Portfolio Functions Broken?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auxiliary functions Error goun Sierra Chart Programming 1 December 15th, 2014 09:26 AM
EUR/USD price decimal in functions LetmeInNow TradeStation 2 May 8th, 2013 12:49 AM
[MC] Functions to draw rectangles with MultiCharts Nicolas11 The Elite Circle 2 June 18th, 2012 09:28 AM
System Optimization Fitness Functions fluxsmith NinjaTrader Programming 27 April 29th, 2011 06:52 PM
Music + neuronal functions max-td Traders Hideout 0 October 12th, 2009 09:04 AM


All times are GMT -4. The time now is 10:06 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-05-27 in 0.06 seconds with 19 queries on phoenix via your IP 54.145.118.24