Click here to Login





                                                   Access Point Value in strategy script?

  0

0
Kiran
2015-06-15 17:59:13


How do i access PointValue of a Futures symbol in a strategy script? I tried Symbol.PointValue and PointValue(), but neither is supported.

thanks
Kiran



QuantShare
2015-06-17 17:17:06

  0

There is no function to get this.
You must create your own function/indicator and add something like:

result = cFunctions.SymbolInfo.PointValue;



Kiran
2016-12-18 17:42:20

  0

I need to get PointValue of the symbol whose order is triiggered in a Money Mgmt script (snippet below). I get a compile error "cFunctions doesnt exist in this context".

How do i specify the symbol and get the PointValue in the MM script? Pl provide sample code.

_TradingOrder pos = orders[i];
string sym = pos.Symbol;
double pv = cFunctions.SymbolInfo.PointValue; //How to specify symbol here? SymbolInfo(sym).PointValue


thx
Kiran




QuantShare
2016-12-19 03:53:52

  0

Here is how:

_TradingOrder pos = orders[i];
string sym = pos.Symbol;
double pv = Data.GetSymbolInfo(sym).PointValue;



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Hedge a portfolio strategy
Bulls and Bears Strategy
Percentage of Stocks Trading Above their Pivot Point
Strategy Optimization on Random in-sample and out-of-sample Perio...
Investing in stocks using the Kelly criterion money management st...

How-to Lessons
How to quickly select stocks based on the last value of a databas...
How to create a volatility-based Stop - Dynamic stop based on the...
How to get fundamental data for U.S. Stocks
How to create and trade a Neural Network model
How to detect stocks trading near all time highs

Related Forum Threads
Futures data - overwrites stock symbols, issues with point value
Access the equity value of the portfolio from the simulator
Set Global Variable Between Strategy and AMM
Access MAE In AMM Script?
Accessing Symbol Info in Screener, Strategy script and in MM tool...

Blog Posts
Optimizing the Strategy Equity Curve
Create a trading strategy using the money management tool - Part ...
Optimize a trading strategy using the Sharpe ratio
How to turn any ordinary trading strategy into a very profitable ...
6 techniques to improve the performance of your stock trading str...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.