Click here to Login





                                                   How to get Limit/Stop Prices of QSOrder-Object

  0

0
luftbus320
2016-09-29 11:39:55


Hello Azouz,

I am running a Task triggered Script, that sends me an email with Orders generated by my Portfolios.

...
foreach (QSOrder qsorder in NewPortfolioRun.Orders)
{
addmessage("log", " Neue QS Order: " + qsorder.Symbol + "," + qsorder.OrderOrigin + "," + qsorder.Shares + "," + qsorder.OrderType );
}
....


This is working fine with Market Orders, but how can I access the Stop- or Limit Price in case of Limit Orders?

Is there an Attribute LimitPrice in QSOrder?
Maybe you provide something like a UML-Diagram of QS-Objects?

Best Regards

Kevin



QuantShare
2016-09-30 04:57:48

  0

Hi Kevin,

You will not be able to get the stop/limit price.
In the script editor, you can click on the "Help" button at the bottom of the editor to display the list of all available functions and variables.

To get more options, you can write a money management script that would be executed each time the portfolio is run.



luftbus320
2016-10-05 13:03:48

  0

Hi Azouz,

maybe you could add the PendingPrices to the QSOrder-Class in the next Version?

In the meantime, can you explain how to pass the result of e.g. Orders.GetPendingBuyOrders() from MMScript, so I have access to it in the Task triggered Script?

Best Regards

Kevin



QuantShare
2016-10-06 04:40:26

  0

Ok we will do that.

The MMScript is something different than the Task triggered script. You cannot pass data directly.
What you can do for example, is have the MMScript generate a file containing the necessary information then read that file from the Task triggered script and use it the code.



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
How far are the close prices from the support line
IMF Commodity Prices
Simple pattern detection rules using close and open prices
Euronext Paris - Realtime Share Prices Data
Market Rule based on the Crossover Between Stock Close prices and...

How-to Lessons
How to get trading orders from a portfolio programmatically
How to get fundamental data for U.S. Stocks
How to get stocks for a particular index using the global script
How to generate buy/sell signals from a trading system
How to debug a downloader

Related Forum Threads
how can I get MCX commodity charts ?
How to get the last day of the month in C#
How can I get data from Barchart
How to get the median closing price?
How to get forex rates for a specified currency

Blog Posts
Step by step on how to get free realtime/delayed data for stocks,...
How to get buy and sell orders for a portfolio based on a trading...
How to create and backtest thousands of trading rules in less tha...
4 Links to Download Free Historical Stock Prices Data by Date
How to Pick the Best Trend Indicators









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.