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


ThinkScript Portfolio Functions Broken?
Started: by kula Views / Replies:99 / 1
Last Reply: 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 11: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)

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

An Afternoon with FIO member Massive l

Elite only

Leo Murphy: Making sense of Technical Analysis and Random Walk

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

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


All times are GMT -4. The time now is 04:03 PM.

no new posts
Page generated 2017-01-18 in 0.08 seconds with 19 queries on phoenix via your IP 54.204.104.49