Using the Profit Exit Plug-in


The functions of the Profit Exit plug-in are used like any other functions in VTS.  

They can be dragged, dropped and connected in any way.



Logic can be implemented to employ different exits based on a characteristic of the trade.


For example, a Channel Exit may be used to start a trade, but after a period of time, or a

certain amount of profit a, the exit may be switched to a Chandelier Exit or a simple Trailing stop.



IMPORTANT NOTE ABOUT INVALID STOPS (MQL Error 130)


The MQL error 130 occurs when an attempt is made to modify an order with an invalid stoploss or takeprofit value.

An "invalid value" can mean zero, too small, or too large.  The actual allowable values are determined by the broker

and the type of account (standard, mini, or micro).


The error is written to the Journal tab when testing and the Experts tab when running live.


In many cases, when using advanced exits such as the ones found in the Profit Exit Plug-in, it is normal to see some "invalid stop" errors.


This is because the value of the stoploss is being calculated on each tick and may be outside of the allowable value for the stoploss.

It is permissible for the EA to run this way until the stoploss value is valid or the trade is closed.






Related Topics:
Property Window
Welcome Screen
Assignment
Condition
TRADESIGNAL Manager
COMMUNICATION Manager
Message
Logic
MetaTrader Platform Configuration
Compiler
Compiler Flags
Platform
Editor
EA Output Folder
Custom Indicator Folder
License
fnOpenOrder
init and deinit
Journal Tab
Experts Tab
Step 1
Step 2
Step 4
Logic
Using Easy Email from the Communication Manager
Using Easy Email from any Element
Testing the Easy Email Connection
Using FX PowerGrid
Using the Profit Manager
Using Client-Side Stops
Using an Offset Value
Using an Absolute Price Value
Building an Expert Advisor to draw and manage a Fibonacci retracement
Configuring the Weight and Threshold
EA-Indicator Plug-in
Enable the EA-Indicator Plug-in
Using the EA-Indicator Plug-in
Custom Indicators in the Toolbox
EA-Indicator Price Chart
EA-Indicator Video
EA Secure Plug-in
Enbale the EA Secure Plug-in
EA Secure Plug-in System Manager
EA Secure Configuration
EA Secure on Price Charts
Chart Execute Plug-in
Chart Execute on Price Chart
Using Chart Execute
Chart Execute Notes
Money Manager Plug-in
Money Management Table
Package Plug-in
Load a Package
fnRemoveAllPivots
Using the Multi Trade Plug-in
Using the Debug Manager Plug-in
Debug Manager Plug-in on a VTS Drawing
Event Manager Plug-in
Using the Event Manager
MQL Event Documentation