Expert Advisor for VertexFX

Dealers Trade MACD

The Dealers Trade MACD Expert Advisor is an innovative VertexFX client side script that employs trend

reversal trading techniques based on the MACD indicator, along with advanced account protection mechanisms

during trade reversals.
This Expert Advisor identifies MACD divergence, whereby a BUYING opportunity is created when the MACD is

falling, but the price is rising. Since the price is rising, but the MACD is falling, eventually the MACD must rise,

and the potential of a bullish breakout is increased due to the feedback loop.
Similarly, a SELLING opportunity is created when the MACD is rising, but the price is falling. Eventually, the

MACD must fall, and the potential of a bearish breakout increases due to the feedback loop.
The Expert Advisor evaluates conditions for a BULLISH or BEARISH divergence. When a divergence

condition is detected, it places a trade in the direction of the divergence. For example, if MACD is rising, and the

price falling, a BEARISH divergence is formed. The Expert Advisor places a SELL trade at market price.
The take-profit and stop-loss are set accordingly.
In the likelihood that the price continues to fall, no further action is necessitated because the SELL trade is

profitable. The SELL trade is then managed using the trailing stop.
On the contrary, if the price continues to rise, the SELL trade is adversely affected, and at a loss. When this

SELL trade reaches a loss of PIPS (pips), and the BEARISH divergence still exists, a new SELL trade is opened.
This process continues till the SELL trades become profitable (some SELL trades may become profitable, while

the earliest opened SELL trades may not become profitable), or new SELL trades will be opened at a distance

of PIPS from the previous SELL trade, till the total number of SELL trades opened is equal to MAX_TRADES.
The lot-size of the new trade is multiplied by DOBLE of the previous trade’s lot-size. When the maximum

number of trades is reached, the robot does not open new trades – it waits for the stop-loss to hit, or for the

trades to turn profitable.
If a BULLISH divergence is detected while SELL trades are open, the robot does not close the open SELL

trades, but rather opens BUY trades with similar rules – each BUY trade is opened PIPS distance below the

previous BUY trade.
The BUY and SELL trades are tracked independently, and their profits are not combined. If

ACCOUNT_PROTECTION is enabled, then when the open profit of each leg (SELL or BUY)reaches

SECURE_PROFIT amount, then the stop-loss of all the trades in that leg are moved to the average price

(break-even) of that leg.
 

Attachments

  • Dealers_Trade_MACD.zip
    4.8 KB · Views: 422
Up Bot Auto trader

The Up Bot Auto trader is a powerful bi-directional Vertex-FX client-side script that trades based on price divergence between two consecutive bars.

The concept behind this trading system is based on the formation of two consecutive Highs (or Lows) in close proximity, followed by a reversal in the opposite direction. The likelihood of the price continuing the reversal towards a new High (or Low) is very high, and entering a trade under such circumstances can be very rewarding. This is called High-Low divergence. Robust money management techniques using a tight profit target, stop-loss and use of a trailing stop can enhance the profitability of the trades.

A BUY position is opened if the absolute distance between the current Low and the previous Low is less than the value of HLDivergence parameter, and the Bid price is at a distance between SpanPrice and 1.5 times the SpanPrice from the current Low. The idea behind this entry is that after two adjacent Lows are formed very close to each other, and as the price continues to rise, the probability of a bullish breakout is very high, and a BUY trade is thus opened. Only one BUY trade per candle is allowed.

A SELL position is opened if the absolute distance between the current High and the previous High is less than the value of the HLDivergence parameter, and the Ask price is at a distance between SpanPrice and 1.5 times the SpanPrice from the current High. The idea behind this entry is that after two adjacent Highs are formed very close to each other, and as the price continues to fall, the probability of a bearish breakout is very high and a SELL trade is thus opened. Only one SELL trade per candle is allowed.

Both BUY and SELL trades can co-exist at that the same time, and are tracked independently. The maximum number of open trades allowed is restricted by the MaxTrades parameter.

A trade can be closed either when the profit-target, stop-loss or trailing-stop loss is hit. Additionally, a trade can exit if OutputAtLowerand/or OutputAtReverseparameters are enabled and their conditions are met.

When OutputAtLower is enabled, BUY trade(s) are closed when the current Bid price is lower than the current candle Low, and SELL trades are closed when the Ask price is above the current candle High. This setting is useful in exiting trades that have false breakouts quickly. When a BUY trade is active, and the price starts falling and makes a new Low, it is likely that the market circumstances have changed and hence it is diligent to exit the BUY trade. Similarly, when a SELL trade is active, and the price starts rising and makes a new High, it is likely that the market circumstances have changed and hence it is diligent to exit the SELL trade.

Another safety mechanism for exiting open trades is the OutputAtReverse setting. When enabled, the Auto trader does not wait for the OutputAtLower trigger, which occurs only when a new Low (or High) is made. For a BUY trade, it exits when the current Bid price is at a distance between SpanReverseand 1.5 times SpanReversefrom the current Low. Similarly, for a SELL trade, it exits when the current Ask price is at a distance between SpanReverse and 1.5 times SpanReverse from the current High.

The OutputAtReverse ensures that the trade exits quickly if there is a change in direction, but at the same time, in a sideways market, it can generate false exits.The value of SpanToReverse should always be less than the value of SpanPrice.

The file is attached here

http://www.hybrid-solutions.com/plugins/client-vtl-plugins/free/up-bot.html
 

Attachments

  • Up_bot_1.0.zip
    3.9 KB · Views: 425
Reverse EA

Reverse Script is a handy VertexFX client-side script that reverses open positions in current trade account.
The purpose of this script is to reverse existing open positions quickly, reliably and accurately in an automated mechanism. There are circumstances when a trader feels that the market conditions have reversed and he needs to reverse his open positions. The trader is able to accomplish this with a single click using the Reverse script.
The script iterates through each open position (either a BUY or a SELL trade), and then closes it at the market price. After the original position has been closed, it opens a new trade with the same lot-size in the opposite direction. So, a BUY position is closed and an opposite SELL position with an identical lot-size is opened. Likewise, a SELL position is closed and an opposite BUY position with an identical lot-size is opened. If the paramter CurSymbolOnly is set to TRUE, then the script reverses positions only for the current chart symbol leaving open positions of other symbols untouched. However, if CurSymbolOnly is set to FALSE, then the script reverses open positions of all symbols.
If StopLoss and TakeProfitparameters are configured then the script sets the stop-loss and the profit-target of the reversed positions accordingly.
The Marketwatch parameter is used to configure the script for STP/ECN brokers, whereby the broker expects the stop-loss and the profit-target to be set only after the position is opened. When set to TRUE, the Reverse script first opens the reverse position and then updates the stop-loss and take-profit thereby fulfilling the criteria of STP/ECN brokers.
The Reverse script does not act upon pending orders, namely BUY-LIMT, BUY-STOP, SELL-LIMIT and SELL-STOP orders. It acts only on open positions, thus leaving the pending orders untouched.


http://www.hybrid-solutions.com/plugins/vertexfx-styles/free/reverse.html
 

Attachments

  • Reverse.zip
    2.7 KB · Views: 438
NTK Expert Advisor

The NTK Expert Advisor is a VertexFX client-side script built upon price breakout technique. It is based on the idea that when a strong trend starts, the probability of this strong trend continuing is very high. Hence, trades opened in the direction of the trend have a greater probability of success and profit. This Expert Advisor capitalizes on this idea by trading in the direction of the breakout. It does not attempt to determine the direction of the breakout, but rather waits to trade in the breakout direction by placing pending orders in both directions.
When the Expert Advisor is attached to chart, it places a BUY-STOP and a SELL-STOP orders based on the NET_STEP, PER and CENTER parameters. The take-profit specified by the TP parameter is typically greater than twice the stop-loss defined by the SL parameter. This ensures a greater Profit Factor and results in higher overall profitability. The initial lot-size is calculated based on the SL, PERCENT and Account Balance.
After the initial STOP orders are placed, the Expert Advisor waits for a breakout in either direction. Once a pending order is triggered, the opposite pending order is deleted. Thus the Expert Advisor trades only in the direction of the trend. It does not open orders in the counter-trend direction.
Once a trade is open, the Expert Advisor employs a trailing stop – either using a fixed distance as specified by TRAIL_PROFIT or based on the Simple Moving Average based on USE_MA and MOVING_PERIOD. Similarly, if BE_ZUB is specified, then the trailing stop is moved to the entry price once the trade reaches a profit of BE_ZUB points.
The next pending order is placed in the same direction after the initial trade is opened. For example, if the initial trade is a BUY trade, then a new BUY-STOP order is placed at distance of NET_STEP points from this initial trade. The lot-size of the second order is MUL times the lot-size of the first order. This process is repeated till the MAX_TRADES number of trades is reached. Once this limit is reached, the Expert Advisor does not place new trades, and only manages the existing trades. Each position is closed either at the take-profit, or at the initial stop-loss, break-even stop or by the trailing stop. Finally, once the last trade is closed, the Expert Advisor starts over again by placing the initial BUY-STOP and SELL-STOP orders.
In the adverse scenario of the market changing its direction, the trades are exited at stop-loss. Typically, the stop-loss is half (or less) the value of the take-profit, so a smaller Win/Loss Ratio is sufficient to generate a superior Profit Factor.

http://www.hybrid-solutions.com/plugins/client-vtl-plugins/free/ntk.html
 

Attachments

  • NTK.zip
    5.4 KB · Views: 436
Oblomov Expert Advisor

The Oblomov Expert Advisor is a simple VertexFX client-side automation script used by traders to open a BUY trade on Monday (i.e. at the start of the trading week) based on the level of previous candle’s pivot. It is especially useful for traders who trade stocks in the BUY direction based on Daily and Weekly pivot levels.
A BUY trade is opened on Monday at the specified OpenTime hour (e.g. 10 a.m.) if the open price of the current candle is above the typical price of the previous (closed) candle. The typical price is calculated as the average of High, Low and Close of the previous closed candle. The trade is protected by the StopLoss and TakeProfit parameters.
The lot-size can be set to either fixed lots, or calculated dynamically. If the value of Lots parameter is set to a valid (non-zero) value, the trade is opened with a fixed lot-size.
On the contrary, if the value of Lots parameter is set to zero, then the dynamic lot-size is calculated based on the current Account Balance. If the current Account Balance is less than InitEquity, then the lot-size is set to minimum allowed lot-size by the broker. If the current Account Balance is equal to or greater than InitEquity, the lot-size is set to InitLots, and for every additional amount of DeltaEquity in the Account Balance the lot-size is increment by DeltaLots. For example, if InitEquity is set to 500, InitLots set to 0.1, DeltaEquity set to 200, and DeltaLotsset to 0.2, then if the Account Balance is $1000, then the dynamic lot size is calculated as 0.5 lots.
If a trade is already open, the Expert Advisor does not place a trade. This Expert Advisor does not place SHORT (SELL) trades.
http://www.hybrid-solutions.com/plugins/client-vtl-plugins/free/oblomov.html
 
RECO Expert Advisor

The RECO Expert Advisor is an innovative VertexFX client-side script that places trades by identifying the market trend. It is based on the Relative Strength Index (RSI), oscillator and employs a variation of the Martingale based position management.
When the Expert Advisor starts afresh without any open positions, it waits for the RSI to cross below the RSI_BUY_ZONE or above the RSI_SELL_ZONE threshold levels. The initial BUY trade is placed when the RSI is below the RSI_BUY_ZONE, and likewise, the initial SELL trade is placed when the RSI is above the RSI_SELL_ZONE.
Once the initial BUY trade is placed, the next BUY trade will be placed when RSI is below the RSI_BUY_ZONE, and the price is below the previous BUY trade price by at least START_DISTANCE and DISTANCE_MULTIPLIER points. For example, if START_DISTANCE is 30 points, and DISTANCE_MULTIPLIER is 1.5, then the second BUY trade is placed 30 points below the first trade, the third BUY trade is placed at distance of 45 points below the second BUY trade, the fourth BUY trade is placed at a distance of 67 points below the third BUY trade and so on. Subsequent BUY trades can be placed only if the RSI is below the RSI_BUY_ZONE level. The lot size of each subsequent trade is increased using the LOT_MULTIPLIER and is bounded between MIN_LOT and MAX_LOT. For example, if the LOT_MULTIPLIER is set to 2.0 and the value of LOT is set to 0.1, then the lot-size of the second trade is 0.2, that of the third trade is 0.4 and so on.
A similar contrary rule is employed to place SELL trades, where the next SELL trade is at a farther distance above the previous SELL trade calculated from START_DISTANCE and DISTANCE_MULTIPLIER with increasing lot size.
This mechanism adds safety to the Expert Advisor as it ensures that the new positions are not opened very quickly. This is especially valuable when the market is falling (or rising) very quickly, whereby the Expert Advisor avoids adding new trades very quickly and risking ruin.
RECO Expert Advisor does not use profit target and stop-loss for individual trades. It uses combined net profit / loss to exit the open positions when the profit or loss threshold is crossed. The profit threshold is calculated if USE_CLOSE_PROFIT is set TRUE, and likewise the loss threshold is calculated if USE_CLOSE_LOSE is set to TRUE.
To illustrate, assume PROFIT_1_ORDER is set to 3, PROFIT_MULTIPLIER is set to 2. If only one trade is open, it will be closed when the profit reaches $3, if two trades are open then both trades will be closed when the combined profit reaches $6, if three trades are open then these three trades will be closed when the combined profit reaches $12. The loss threshold can be calculated similarly from the above example by substituting the respective values of LOSE_1_ORDER and LOSE_MULTIPLIER.
The Expert Advisor can open SELL trades while BUY trades are open, and vice-versa depending on the RSI value and the RSI_BUY_ZONE and RSI_SELL_ZONE thresholds being triggered.
http://www.hybrid-solutions.com/plugins/client-vtl-plugins/free/reco.html
 
Arbitrage Reverse

The Arbitrage Reverse Expert Advisor is an innovative VertexFX client-side script that trades based on the direction of the trend and the historical (average) trading price. It does not use any technical indicators, but performs trading decisions based on the current price, the current profit / loss, and the accumulated (historical) profit / loss of the trading account. The idea behind this Expert Advisor is that prices revert to the mean, so taking position in the anticipation that price will revert to the mean can lead to good profits.
The initial entry trigger price is calculated based upon the input BEGINPRICE and the average price of the closed (historical) trades of the current instrument. A LONG trade is initiated if the current price goes below this trigger price, whereas a SHORT trade is initiated if the current price goes above the trigger price. To avoid entering too many consecutive trades in the same direction and risk losing money, the Expert Advisor executes the trades only once per candle. This reduces the risk of opening too many trades too quickly and conserving margin.
The trigger price is recalculated on each candle - if the current price is still below the new trigger price, the Expert Advisor opens another LONG trade. On the other hand, if the current price is above the new trigger price, the Expert Advisor opens a new SHORT trade if none exists. However, if a SHORT trade already exists, it closes a matching LONG and a SHORT trade such that their net profit is positive. This ensures that the Expert Advisor reduces its margin exposure as well as taking profits at regular intervals. If it cannot find a matching LONG and SHORT trade whose combined profit is positive it opens a new SHORT trade. This process is repeated until the price moves to the opposite side of the trigger price thereby closing matching profitable positions.
The Arbitrage Reverse Expert can be very profitable in range bound markets, and in markets where a trend reversal is imminent. In range bound markets, the Expert Advisor takes positions when the price moves away from the trigger price, and then closes profitable positions as the price approaches the trigger price. In such markets, the price typically oscillates around the trigger price thus providing excellent trading opportunities.
In markets where trend reversal is imminent, the Expert Advisor initially takes positions in the opposite direction of the current trend. This is because the Expert Advisor opens LONG trades below the trigger price, and SHORT trades above the trigger price. When a reversal occurs the Expert Advisor turns profitable and closes the profitable positions in pairs.
Once all positions are closed, the Expert Advisor starts again by recalculate the new trigger price.

https://www.hybrid-solutions.com/plugins/client-vtl-plugins/free/arbitrage-reverse.html
 
Rsx

The RSX indicator is a powerful VertexFX client-side script that is useful in identifying the strength of a trend. It employs smoothing and noise filtering mechanism to remove excessive noise, resulting in a smooth, bounded oscillator with minimal lag.
RSX is bounded between 0 and 100- values below 50 imply bearishness whereas values above 50 imply bullishness. When the RSX is rising smoothly the price is in a bullish uptrend, and when the RSX is falling smoothing the price is in a bearish downtrend. When the indicator is below 30, it is considered to be extremely bearish with a likelihood of reversal. Similarly when the indicator is above 70, it is considered to be extremely bullish with a likelihood of a reversal.
Traders prefer to enter a LONG trade when the RSX has started rising after have turned around from below 30. The stop-lossis typically placed below the nearest Swing Low during a LONG trade. A SHORT tradeis entered when the RSX has started falling after having risen above 70. In this case, the stop-loss is typically placed above the nearest Swing High.
The RSX is calculated based on the HIGH and LOW price series over the recent LENGTH period. In the first step, the sum of the previous HIGH and LOW is subtracted is the sum of the current HIGH and LOW price series. A smoothing co-efficient of 3 / (LENGTH + 2) is applied to this difference, and this step is repeated over the recent LENGTH bars. In the next step, the Relative Strength (RS) is calculated from this series over the recent LENGTH bars, and this value is smoothed using the smoothing co-efficient. The resultant value is bounded between 0 and 100 by expressing as a percentage.
Compared to other indicators, RSX produces a smoother output thereby eliminating whipsaws and jittery trades. Additionally, by using HIGH and LOW price series instead of CLOSE, it focuses on the trading range expansion or contraction - which is indicative of trend exhaustion. When a trend nears its exhaustion, the range first narrows down, and thenexpands in the opposite direction – this is captured by the RSX immediately, and thus provides better trading opportunity than other conventional indicators.
https://www.hybrid-solutions.com/plugins/client-vtl-plugins/free/rsx.html
 
Arbitrage Reverse Expert Advisor

The Arbitrage Reverse Expert Advisor is an innovative VertexFX client-side script that trades based on the direction of the trend and the historical (average) trading price. It does not use any technical indicators, but performs trading decisions based on the current price, the current profit / loss, and the accumulated (historical) profit / loss of the trading account. The idea behind this Expert Advisor is that prices revert to the mean, so taking position in the anticipation that price will revert to the mean can lead to good profits.
The initial entry trigger price is calculated based upon the input BEGINPRICE and the average price of the closed (historical) trades of the current instrument. A LONG trade is initiated if the current price goes below this trigger price, whereas a SHORT trade is initiated if the current price goes above the trigger price. To avoid entering too many consecutive trades in the same direction and risk losing money, the Expert Advisor executes the trades only once per candle. This reduces the risk of opening too many trades too quickly and conserving margin.
The trigger price is recalculated on each candle - if the current price is still below the new trigger price, the Expert Advisor opens another LONG trade. On the other hand, if the current price is above the new trigger price, the Expert Advisor opens a new SHORT trade if none exists. However, if a SHORT trade already exists, it closes a matching LONG and a SHORT trade such that their net profit is positive. This ensures that the Expert Advisor reduces its margin exposure as well as taking profits at regular intervals. If it cannot find a matching LONG and SHORT trade whose combined profit is positive it opens a new SHORT trade. This process is repeated until the price moves to the opposite side of the trigger price thereby closing matching profitable positions.
The Arbitrage Reverse Expert can be very profitable in range bound markets, and in markets where a trend reversal is imminent. In range bound markets, the Expert Advisor takes positions when the price moves away from the trigger price, and then closes profitable positions as the price approaches the trigger price. In such markets, the price typically oscillates around the trigger price thus providing excellent trading opportunities.
In markets where trend reversal is imminent, the Expert Advisor initially takes positions in the opposite direction of the current trend. This is because the Expert Advisor opens LONG trades below the trigger price, and SHORT trades above the trigger price. When a reversal occurs the Expert Advisor turns profitable and closes the profitable positions in pairs.
Once all positions are closed, the Expert Advisor starts again by recalculate the new trigger price.

https://www.hybrid-solutions.com/plu...e-reverse.html
 

Attachments

  • Arbitrage_Reverse.zip
    3.1 KB · Views: 357
  • SC.png
    SC.png
    166.6 KB · Views: 374
Rsx

The RSX indicator is a powerful VertexFX client-side script that is useful in identifying the strength of a trend. It employs smoothing and noise filtering mechanism to remove excessive noise, resulting in a smooth, bounded oscillator with minimal lag.
RSX is bounded between 0 and 100- values below 50 imply bearishness whereas values above 50 imply bullishness. When the RSX is rising smoothly the price is in a bullish uptrend, and when the RSX is falling smoothing the price is in a bearish downtrend. When the indicator is below 30, it is considered to be extremely bearish with a likelihood of reversal. Similarly when the indicator is above 70, it is considered to be extremely bullish with a likelihood of a reversal.
Traders prefer to enter a LONG trade when the RSX has started rising after have turned around from below 30. The stop-lossis typically placed below the nearest Swing Low during a LONG trade. A SHORT tradeis entered when the RSX has started falling after having risen above 70. In this case, the stop-loss is typically placed above the nearest Swing High.
The RSX is calculated based on the HIGH and LOW price series over the recent LENGTH period. In the first step, the sum of the previous HIGH and LOW is subtracted is the sum of the current HIGH and LOW price series. A smoothing co-efficient of 3 / (LENGTH + 2) is applied to this difference, and this step is repeated over the recent LENGTH bars. In the next step, the Relative Strength (RS) is calculated from this series over the recent LENGTH bars, and this value is smoothed using the smoothing co-efficient. The resultant value is bounded between 0 and 100 by expressing as a percentage.
Compared to other indicators, RSX produces a smoother output thereby eliminating whipsaws and jittery trades. Additionally, by using HIGH and LOW price series instead of CLOSE, it focuses on the trading range expansion or contraction - which is indicative of trend exhaustion. When a trend nears its exhaustion, the range first narrows down, and thenexpands in the opposite direction – this is captured by the RSX immediately, and thus provides better trading opportunity than other conventional indicators.
https://www.hybrid-solutions.com/plu.../free/rsx.html
 

Attachments

  • SC.png
    SC.png
    146.2 KB · Views: 357
  • RSX.zip
    2.3 KB · Views: 341
Top