Click here to Login





                                                   Buy stop at high

  0

0
Juliettpapa
2013-09-05 10:58:07


I have a question regarding the simulator.
I have to conditions to buy.
When they are met, i want to buy 2% above the High --> buy stop at high*1.02
How can i write this in QS?

Regards
JP



clonex
2013-09-05 11:54:39

  0

Best Answer
Hi,

SetSimTiming(_Buy,_Stop,0);
BuyPrice(high*1.02,0);

Buy = Rsi(2)<50;

This script place at next bar stop order with duration one bar to buy after RSI condition has met.

Clonex



Juliettpapa
2013-09-05 12:11:06

  0

Thanks, that what i wanted. ;-)
JP



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
Buy High Sell Higher
Buy low, Sell High
Buy Low Sell High Screen
Entry Trailing Stop V2
Entry Trailing Stop

How-to Lessons
How to create a volatility-based Stop - Dynamic stop based on the...
How to optimize the stop limit of a trading system
How to screen for stocks having a high correlation with the Dow J...
How to create a trading system
How to set order type of a trading system programmatically

Related Forum Threads
How can I build up an trailing stop limit buy order
Place a profit stop through Money management strategy
Trailing stop value with Intraday data
ATR stop and MM
Sharpe ratio of backtest/simulation aapears to be too high

Blog Posts
Trading System: Moving average crossover and few others buy and s...
Trading System: Buy Stocks based on their Sharpe Ratio Rank
Buy the best/top rated stocks or how to create powerful rank base...
How to get buy and sell orders for a portfolio based on a trading...
Trading System: Buy stocks with the highest Sharpe ratio









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.