TradingSolutions Home  |  Products  |  Services  |  Downloads  |  Resources  |  Support  |  Order NeuroDimension Home  
'
   Products
     TradingSolutions
     Trader68
     Add-Ons
     Bundles
     Financial Books
     Other Products
   Services
     System Development
     Custom Software
   Downloads
     Free Evaluation Copy
     Product Updates
     Free Systems
   Resources
     Sample Performance
     Video Tour
     Data Sources
     TradingSolutions FAQ
     Online Brokers
   Viewpoints
     Customer Interviews
     Customer Quotes
     News and Reviews
   Support
     How to Get Help
     Licensed User Center
     Contact NeuroDimension
   Order

   ND Corporate Website
   NeuroSolutions.com
   Trader68.com

TradingSolutions Function Library

  Rule: Exit On Percent Loss From High [Rule_ExitOn%LossFromHigh]  
Return to Complete List of Functions
The Rule: Exit On Percent Loss From High function determines if an entry/exit system has resulted in a given percentage loss from the best closing price in the current trade.

Parameters
------------------
Close                                       The closing price of the security for each given day.
Percent Loss For Exit              The percent loss which should cause an exit to occur (0..100)
For Short Exit                           Set this parameter to 1 to test for short exit conditions. Otherwise leave at 0.

Function Value
------------------------
This function returns 1 if an entry/exit system has resulted in a given percentage loss from the best closing price in the current trade, otherwise it returns 0. Losses are determined by checking the difference between the best closing price during the trade and the current closing price. For long trades, the best price is highest price. For short trades, the best price is the lowest price.

The "For Short Exit" parameter indicates whether to test for long or short losses. If the parameter is non-zero, the function only returns 1 if the system is currently short. Otherwise, the function only returns 1 if the system is currently long. (This is in addition to the condition being tested.)

The length and position of the current trade are based on the previous values generated by the entry/exit system this function is used in. Because of this, it can only be used from within an entry/exit system or from within a function which will be used in an entry/exit system.

TradingSolutions Home  |  Products  |  Downloads  |  Resources  |  Support  |  Order

Contact NeuroDimension | Privacy Policy
Webmasters, join our affiliate program. Interested in selling our software? Become a reseller!
Web Site Design and Implementation Copyright © 2010 NeuroDimension, Inc.
Risks of Forex Trading.