Click here to Login





                                                   Custom Outputs in Rules Analyzer

  2

0
clonex
2014-01-06 22:32:54


Theese are my OUTPUTS for FOREX MARKETS

If you want to simulate time exit:

Long: SET: _PERF(OPEN) WHERE: Hour() == 18 // Close position 19 HOUR at OPEN

Short: SET: -(_PERF(OPEN)) WHERE: Hour() == 18 // Close position 19 HOUR at OPEN


If you want to simulate time exit at specific day:

Long: SET: _PERF(OPEN) WHERE: DAYOFWEEK() ==5 AND HOUR() == 18 // Close postion at Friday at 19 HOUR at OPEN
Short: SET: -(_PERF(OPEN)) WHERE: DAYOFWEEK() ==5 AND HOUR() == 18 // Close postion at Friday at 19 HOUR at OPEN

If you want to simulate time exit and SL:

Long: SET: _PERF(OPEN) WHERE: (OPEN< (_REF(OPEN)-PIPS(50))) OR ISLASTBAR() OR HOUR() == 18 // 50 pips SL or TIME EXIT 19 HOUR at OPEN

Short: SET: -(_PERF(OPEN)) WHERE: OPEN >(_REF(OPEN)+PIPS(50)) OR ISLASTBAR() OR HOUR() == 18 // 50 pips SL or TIME EXIT 19 HOUR at OPEN


PIPS you can replace with 0.0050



QuantShare
2014-01-07 15:04:41

  0

Excellent, thank you for describing your outputs.


clonex
2014-01-13 16:20:45

  0

If you want to use ATR(24) SL and HOUR EXIT:

Long: SET: _PERF(OPEN) WHERE: (OPEN< (_REF(OPEN)-ATR(24))) OR ISLASTBAR() OR HOUR() == 18
Short:SET: -_PERF(OPEN) WHERE: (OPEN> (_REF(OPEN)+ATR(24))) OR ISLASTBAR() OR HOUR() == 18

If you want to use TRAILING ATR(24) SL and HOUR EXIT:

Long: SET: _PERF(OPEN) WHERE: OPEN < (_MAX(OPEN)-ATR(24)) OR ISLASTBAR() OR HOUR() == 18
Short: SET: -_PERF(OPEN) WHERE: OPEN > (_MAX(OPEN)+ATR(24)) OR ISLASTBAR() OR HOUR() == 18

If you want to use ATR(24) SL and ATR(120) PT and HOUR EXIT:

Long: SET: _PERF(OPEN) WHERE:(OPEN< (_REF(OPEN)-2*ATR(24))) OR (OPEN> (_REF(OPEN)+1*ATR(120))) OR ISLASTBAR() OR HOUR() == 18
Short: SET: -_PERF(OPEN) WHERE:(OPEN> (_REF(OPEN)+2*ATR(24))) OR (OPEN< (_REF(OPEN)-1*ATR(120))) OR ISLASTBAR() OR HOUR() == 18



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
DeMark DeMarker Trading Rules
Upside-Downside and Custom Standard Deviation
Price Channel Trading Rules
Trading Rules using Trend Indicators
Trading Rules based on the Relative Strength Index - RSI Indicato...

How-to Lessons
How to create a custom trendline
How to use a custom drawing tool
How to create trading rules based on Put and Call volume data
How to create a custom trading indicator
How to add custom position-based metrics to your trading system

Related Forum Threads
Request: Example of Custom Metrics addition into Rules Analyzer
Custom Exits in the QS Rules Analyzer
Save Rules Analyzer Output
Rules Analyzer - Select Best Rules
Add'l Fields in Rules Analyzer Output

Blog Posts
Introduction to the trading rules analyzer
Create custom metrics for the statistical data analysis tool
How to create and backtest thousands of trading rules in less tha...
Forecast volatility using trading rules and neural networks
10 masks to create thousands of rules to use into your trading sy...









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.