Hello & Welcome on board !!! :-)
Please note:
Before you can post a message on the forum you need to REGISTER to get a unique GiG username (Totally Free!). Feel free to look around - just start browsing any of the sections from the home page of GiG. Join the community!.
Post, discuss and review the best MetaTrader Trade Management tools for trailing…
20 % 80 %
  • User avatar
User avatar
By Geko
#126
Blast is a tool that I have been developing for the last 3 years.

Why this idea?

The idea behind it was to make my trader’s life easier, to have all the main tools that I am using on regular basis at 1 click.

As you know, due to MT4 limitations, navigation between charts and charts organization is awful. Each time you want to attach a tool to your chart (indicator, EA or script), you have to navigate in MT4 navigator, scroll down the tool list, find the tool you are looking for, attach it to your chart and customize its settings to fit your requirement.

There are also some functions which are not available as default functions in MT4 and for which I have not found any interesting tools.

So yes, I was fed up with this process, maybe also a bite lazy, and as you know time is money so here comes Blast.

At the beginning, there were just a couple of functions, and step by step, day after day I have implemented other functions until this result. You will find basic functions and tools and some more advanced ones. I am not using all the options available in Blast, but you might find some of them useful.

This is the second version of Blast, as I have completely recoded the first version to improve the code, limit CPU usage and add some cool transparency effect to display the various objects.

Blast is a simplification of my previous simplified tools.

I do not plan to add any functions into Blast for the moment. There are already a lot of functions to play with. If and only if you prove me that a function could be useful and explain me why with proven results, I will consider coding it.

As this version was completely recoded, I might have created some glitches in the code. So far so good, but there are so many potential combinations… If you encounter a bug, please post your settings (presets or template), an explanation about what you were trying to do, and a screenshot about the expert tab with the error.

WITH 1 CLICK YOU CAN
==========================================================

• Open Market Orders or Pending orders
• Choose between 4 money management scenarios
• Modify your orders
• Close all your trades
• Delete all your pending trades
• Trail your orders with 5 different stealth trailing modes and even more
• Set your orders Stop Loss at Breakeven
• Automatically stack orders at candle high or low
• Automatically stack orders at fractal high or low
• Stack multiple orders manually with a grid
• Scale in trades without risk
• Display information’s about your account
• Display results of closed trades
• Display results of open trades
• Get pip value and margin requirement according to the lot size used
• Display information’s about open trades (SL, TP, pips, lock, risk)
• Display average breakeven price for buy orders and/or sell orders
• Maximize and minimize charts when used with CDM
• Synchronize crosshair when used with CDM
• Undock charts
• Generate one tick or automatic ticks to monitor charts when market is closed
• Display closed trades on charts with arrow and/or lines and/or boxes
• Display spread, candle timer, ADR, candle direction and other information’s
• Have a clean chart
• Display the daily and/or weekly and/or monthly period separator as vertical lines
• Display the daily and/or weekly and/or monthly open price as horizontal lines
• Display the week day label to know which days occurs a particular move
• Display Sydney and/or Tokyo and/or London and/or New York session open lines
• Display the previous x days and/or x weeks and/or x months high/low levels
• Display a grid with the “Big Round” numbers and sublevels
• Display Murrey Math octaves barometer and/or lines levels
• Display Floor pivots or Camarilla pivots for daily and/or weekly and/or monthly period
• Display potential Master candles on 4 timeframes
• Display fractal boxes of the current timeframe
• Display the last fractal box of a higher timeframe
• Display MTF moving averages with smooth option, inner or outer ribbons with trend color
• Display MTF TMA with smooth option, inner or outer ribbons with trend color
• Display an ATR moving averages channel
• Highlight yesterday candle’s wick zones and specific level (38/62)
• Display potential pullback levels
• Display cool charts with transparency effects
• And much more…

TO SUMMARIZE
==========================================================

To summarize in a few words, with Blast you can:

• Calculate and use an accurate and proper Money Management in no time
• Monitor and manage your trades in no time
• Combine Multiple Powerful Unlimited Trailing Modes
• Detect potential areas of support and/or resistance
• Detect potential trends
• Detect potential levels of interest

Blast can really change the way you are trading and improve your trading almost immediately. We are a few traders to use it for more than 1 year and we all love it.

If you use it and like it just share with us how you are using it.

THREAD ORGANIZATION
==========================================================

• In Post 1: Introduction and Download links with latest version
• In Post 2: Updates logs
• In Post 3: Blast’s screenshot with various features
• In Post 4: User Guide Index
• In Post 5 and after: User Guide
• In further posts, chat, discussion about Blast

Previous Counter Blast Download: 180
You do not have the required permissions to view the files attached to this post.
Gordon, ScarletPip, Sterling and 8 others liked this
User avatar
By Geko
#127
In this post you can find Blast's updates logs:

2016 - 11 - 03 :
=============================================================
Chart Default Scale option added.
HOLO Setup added.
Reversal Candle added.
PSAR trailing mode added.

2016 - 10 - 21 :
=============================================================
- 2 Custom trailing modes added (Lines and Trendlines).
- Trailing post user guide updated, & custom indicators added;

2016 - 10 - 19 :
=============================================================
- Blast first public version posted in GiG;
User avatar
By Geko
#128
Here are a few screenshots and prests of Blast with various features activated:

Blast Main panels:
2016-10-29_1617.png
Blast chart with Outer TMA ribon:
Blast_outer_TMA_channel.png
Blast black chart with MA ribon:
Blast_MA_Ribbon.png
Blast blue chart with yesterday wicks:
Blast_Previous_day.png
Blast with MA ATR channel
ATR.png
You can note the transparency effects with the various ribons, fractal boxes and other colored areas.
You do not have the required permissions to view the files attached to this post.
User avatar
By Geko
#129
Here is the User Guide index.

==> General overview
• Installation
• Mouse hover

==> General settings
• Magic Number
• Automatic GMT offset
• Objects timeframes visibility
• EA update timer
• Look back
• Display functions on initialisation

==> Orders Management Box
• Manual orders
• Scenarios Orders

==> Trailing Management Box
• Trailing with pips
• Trailing with Fractal or Candle
• Trailing with Other trailing mode
• Trailing with RR multiples
• Other trailing options
• Drag & Drop
• Other information’s about Trailing

==> Auto Stacking Management Box
• Auto Stack with Candles
• Auto Stack with Fractals

==> Manual Stacking Management Box

==> Scaling Management Box

==> Tools Button

==> Chart Organization Button

==> Result R1 and Infos Button

==> S/R Support & Resistance buttons
• Master Candles

==> LI Lines buttons

==> SI Signals buttons
• Previous day Wicks
• Pullback signals

==> Top right corner buttons
• Maximize charts
• Crosshair
• Undock
• Generate ticks
• Display open trades results
• Display closed trades results on chart

==> Other considerations
• Other indicators with Blast
• Save settings

You can find Blast's User guide in the next posts.
User avatar
By Geko
#130
Blast is painting charts in a different way than MT4 standards charts which allow transparency effects between various objects and much more.

Here is a screenshot of Blast with OOTB (Out Of The Box) settings showing the various buttons:
01-chart.png
You can note:

• Buttons on the left side
• Buttons on the top right corner
• Information on the bottom right corner
• Gray vertical lines showing day separator
• Magenta vertical line showing week separator
• Week day labels on the bottom of the chart for each week days
• Yellow line showing today open price
• Yellow dotted line showing yesterday open price
• Fractal boxes in dark gray showing fractal levels of support and resistance

Here is a screenshot of Blast explaining the various main buttons functions:
02-chart.png
A click on the tool’s buttons (buttons bellow “T” button) will display and hide other buttons with different functions.

INSTALLATION
==========================================================

Blast comes as an EA (Expert Advisor), to use it place the “.ex4" file into:

Your MT4 installation folder / MQL4 / Experts:

If you are using the undock function, make sure to place also the undock.dll file into:

Your MT4 installation folder / MQL4 / Libraries:

MOUSE HOVER
==========================================================

Blast comes with a lot of options and buttons. To make it easier to use, when you hover your mouse over objects (buttons, edit boxes…) some tips will be displayed with the object function:
03-MouseOver.png
You do not have the required permissions to view the files attached to this post.
User avatar
By Geko
#131
MAGIC NUMBER
==========================================================

Important note, Blast EA will manage trades using the EA Magic Number only.

All trades opened with Blast are using a Magic Number, you can specify the Magic Number to be used in the EA settings.

AUTOMATIC GMT OFFEST
==========================================================

When time comes to GMT offset between your local time, your broker time, GMT time and different zones time, it is always a nightmare to make the calculations and adjust the GMT offset.

In order to make trader’s life easier and to make it easier to compare charts between traders and analyze them, Blast comes with an automatic universal GMT time shift. When you attach it to a chart you HAVE nothing to do. Standard default setting set the daily open at 17 PM New York time.

A lot of Blast’s options are using the daily open calculation to display various information’s like daily/weekly/monthly open, today’s open price, previous days/weeks/months’ highs lows…

This GMT offset calculation was tested on various brokers, but before to go further, just double check that the daily opens are displayed correctly on your chart.

There are various potential combinations and some of them might not be adjusted (positive or negative GMT offset, Broker time GMT + or GMT -…).

You can change the daily open time used as reference in the EA settings.

E.g: If you want to use London midnight as Daily open time, just change the inputs in the EA settings, and change OOTB settings:

Input 99 in Daily Open at New York time
Input 0 in Daily Open at London time
06-GMT.png
During week-ends, when your platform is not connected to your broker’s server, you might have some issues with the GMT offset.

In order to remedy this issue, once you know what your broker GMT shift is, you can input this value into the Broker GMT shift for Weekend field.

To get this value you, you can temporally switch on the Display GMT on Screen option to get this value.

OBJECTS TIMEFRAMES VISIBILITY
==========================================================

On my standard chart, I always display today open price (the yellow line). Up to the H1 timeframe, it makes sense to display this line which could act as support and resistance. But if you switch to a higher timeframe, this line could/would clutter the chart and then won’t be really visible/readable.

In order to keep your charts clean and to display the appropriate information’s related to the timeframe used, almost all functions are coming with a timeframe visibility option that you can find in EA settings.

This option comes like this:
04-TimeframesVisibility.png
In the value field, you can specify on which timeframes the functions/objects will be displayed. Just input the default MT4 timeframes shortcut with a comma separator.
For example, below are the default settings to display today open price line.

With those settings, today open price line will be displayed up to H1 timeframe:
05-TimeframesVisibilityEG.png
This options which is available to display: MA, TMA, period separators lines, sessions separators lines, previous days/weeks/months high/low lines… is really handy to keep your charts clean and to show the most important information’s related to the timeframes used.

You can find this option in the various functions sections.

EA UPDATE TIMER
==========================================================

Blast, as an EA (Expert Advisor) is using the OnTimer function to update its calculation. You can set the frequency of its calculations in the settings. Default value is set to 1 second.

You change it to milliseconds (but it would increase CPU usage) or increase the number of seconds.

Default settings should fit most user’s requirements.

LOOK BACK
==========================================================

In order to avoid extensive CPU and memory usage, Blast has 2 buffers to limit the calculations to X bars back and/or X days back.

For day to day trading, default settings should fit most user’s requirements.

However, if you want to analyze charts history, you might have to increase those numbers.

DISPLAY FUNCTIONS ON INITIALISATION
==========================================================

All Blast’s functions and mains buttons have the option to be displayed on the EA initialization (when you attach it to the chart).

You can tweak those options to fit your requirements.

For example, you can decide to have the Orders Management Box and Trailing Management Box opened on initialization.

When the chart is loaded, if you want to hide those boxes, you can hide them by clicking the associated button.
You do not have the required permissions to view the files attached to this post.
User avatar
By Geko
#132
On click the EA displays the Orders Management Box which allow to open and manage your orders:
01-Orders.png
MANUAL ORDERS
==========================================================
07-order-explain.png
To open orders, set a Take Profit in pips, a Stop Loss in pips and the Lot size, then click on the Buy or Sell button. If you don’t want to set a SL or TP just input 0.

To open PENDING orders, input a price in the edit box then click on the buy or sell pending order buttons (the smaller ones on the right side). For a buy order, if the current price is below the pending price, then the EA will open a Buy STOP order, and if the current price is above the pending price, the EA will open a Buy LIMIT order. The opposite is applicable for sell orders.

The “CA” button allow you to close all pair’s trades.

The “D” button allow you to delete all pair’s pending orders.

The “MO” button allow you to modify your orders: when you click on this button, the EA will open a panel with various options:
08-Modify.png
This panel allow you to modify all your Pair’s orders Take Profit or Stop Loss by specifying a pips distance or a price value. Once you have filled the appropriate edit boxes, click on the blue icon to show the buttons to modify the orders.

This panel also have 2 red buttons at the bottom which allow you to modify all your account’s trades whatever the Magic Number. That’s the only 2 buttons/options which can modify orders for all your platform’s trades.

SCENARIOS
==========================================================


SCENARIOS 1 TO 3
=========================
02-Scenarios.png
4 different money management scenarios are available into Blast. On click the EA will use one of the 4 scenarios. You can use fix lot size, percentage at risk, or X lot size per balance value.

You can setup those scenarios into the EA inputs tab (e.g: scenario 1):
03-Scenarios-inputs.png
When you click on the scenario 1 those values will appear into the Order Management fields (according to your inputs in EA settings in Scenario 1 settings) just given as example.
04-Scenario1.png
You can note a 10 in the Take Profit Edit Box, a 15 in the Stop Loss Edit Box and 1.46 in the Lot Size Edit Box. In this example the lot size was calculated using a 2 risk of your balance with a 15 pips Stop Loss.

Instead of using the scenarios you can also directly change the values in the various edit boxes.

Once you are ok with your Money Management, click on the buy button to place a buy market order or on the sell button to place a sell market order.

When you click on the information button:
05-Infos-button.png
The EA will display a summary of the various calculation (useful to check the various scenarios values quickly):
06-Infos-panel.png
If you use a custom Money Management without using one of the money management scenarios, when you click on the information’s button, it will calculate the risk you are using, the margin requirement…

Be careful when you will click to HIDE this information’s panel, the EA will remove the values to place the default scenario’s values. So, if you are ok with your values, open your order and then hide the panel.

SCENARIOS 4
=========================

The scenario 4 is a little bit different from the 3 other scenarios.

With scenario 4 you can:

- Calculate your Lot size with trend lines placed on the chart
- Use latest fractal boxes to calculate your lot size
- Use 3 legs orders special mode
09-Scenario4.png
==> Trend lines money management
When you click on scenario 4 button the panel above will appear, and a white trend line will appear on your chart also.

This white trend line represents your Stop Loss. You can drag and drop this trend line above or below price, whether you want to open a buy or sell order. You can specify your risk in the panel (in % or cash risked). When you move this trend line, the Lot Size calculation according to your risk will be adjusted. Once ok, just click the Buy or Sell button in the Orders Management Box.

If you want to place pending orders on your chart using this trend lines approach, you can click on the “use a Pending Line button”. A second white trend line will appear on your chart. This second line represent your pending price. Then you can drag and drop the 2 lines where you want on the charts to place your levels. The lot size calculation will be performed thanks to those 2 lines. Once ok, just click the Pending Buy or Pending Sell button in the Orders Management Box.

==> Fractal boxes Money Management
The second part of the panel allow you to use the last fractal box to manage orders.

A click on the “SL @ Fractal Low” button will use the last Fractal low level to place your Stop Loss. You can use this approach when you want to place a Buy market order immediately and quickly. The opposite is true for sell orders with last fractal high level.

With the next 2 buttons, you can also use the last fractal boxes extreme to place Pending Orders and Stop Loss. This method can be used to trade the fractal boxes breakout.

Whether you want to place a pending buy or a pending sell trade Blast will add a pip buffer and the spread to your Breakout level or your Stop Loss level.

==> 3 legs orders
With the 3 legs orders, the EA will open 3 orders instead of 1. In order to use this approach, you should click the “3L Buy” button in the panel and not the Buy button from the Orders Management Box. When you use this mode, a special trailing mode will be activated also.

The idea of the 3 legs orders mode is to have your Stop Loss and your Take Profit at the same distance.

Once the orders reach the Take Profit, Order 1 is closed, Order 2 Stop Loss is set at Breakeven, and Order 3 Stop Loss remain in position. Now you are in a free trade.

Then once orders reach a RR multiple, Order 2 will be closed and Order 3 Stop Loss move to Breakeven.

More details on this mode will come later.
You do not have the required permissions to view the files attached to this post.
User avatar
By Geko
#133
On click the EA displays the Trailing Management Box which allow you to Trail and manage your orders:
01-Trailing-Box.png
Blast has different trailing mode hardcoded and potentially unlimited ways to trail & close your orders:

• Trail 01: trailing by pips
• Trail 02: trailing with fractal high/low
• Trail 03: trailing with candle high/low
• Trail 04: trailing with Mas, Gator, and much more
• Trail 05: trailing with RR
• Set breakeven

Please note that Blast is using stealth mode for trailing. Which mean that the Stop Loss is only on your platform side and not on your broker server side. It means that if your platform is disconnected, the EA won’t trail anymore your orders. Make sure to use Hard Stop to protect your orders in case of emergency and from time to time (there is a button for this, to transform your stealth Stop Loss in Hard Stop Loss.

Please note that in order to work correctly, once you activate one of the trailing modes, the Trailing Management Box must remain open, do not hide it.

The trailing modes can be used on their own, and they can be combined together. Which mean you can activate 1 or more trailing modes, and Blast will use the closest Stop Loss level (smallest SL) to trail your trades.

In order to trail your trades, Blast is always referring to the average Breakeven line. With this method, you can have 1 order open or multiple orders, the reference point will be always the same, the average Breakeven line which is displayed on the screen.

Blast can manage Buy trades and Sell trades at the same time.

A lot of possibilities for a better trade management.

When you switch from one timeframe to the other, if some trailing modes are activated, the EA will store the customized trailing values from the edit boxes. But in order to avoid potential issues, it would make sense to avoid switching from timeframe to timeframe when trailing is on.
When you want to activate a trailing mode, adjust the edit boxes values and then click on the “off” button. The button’s color will change from gray to green, and its status to on.

TRAILING WITH PIPS
==========================================================
02-Trailing-pips.png
With the default values the trailing will start only when price has reached +100 pips and the EA will trail the Stop Loss 30 pips behind the price. Once the trailing is activated after 100 pips, the “Ft” button (Force Trailing) will change to green.

If the price has not reached + 100 pips and you want to start trailing your orders, you can click on the “Ft” button (Force Trailing), then, the EA won’t consider the minimal distance of 100 pips and will start trailing immediately.

The “Ft” button is applicable only for the trailing mode with pips.

On the right side of the Trailing mode 1, you can also note a Take Profit option which can be used in combination with any Trailing mode. To use it, set your Take Profit in pips and click on the TP button to activate it.

TRAILING WITH FRACTAL OR CANDLE
==========================================================
03-Trailing-candle.png
With those trailing modes, Fractal or Candle high/low will be used to set your stop loss.

You can specify the timeframe used and the fractal/candle shift in the edit boxes.

For the timeframes fields, you have to input the timeframe relative time:
04-Periods.png
When you switch from one timeframe to the other, the EA will store those values.

On the right side of the Trailing mode 2, you can also note a “Hs” button. “Hs” stands for Hard Stop. On click, your stealth Stop Loss and/or Take Profit will be transformed in Hard Stop Loss. It means that the information will be send to your broker’s server. Once clicked, you can check your orders and verify that the SL and TP values have changed accordingly.

On the right side of the Trailing mode 3, you can also note a “Ds” button. “Ds” stands for Delete Stop. This button can be used to delete/reset the Stop Loss value. Blast is always using the closest trailing value from the price to trail your orders. If you made a mistake in trailing activation and want to cancel the trailing, you can de-activate the trailing mode, click this DS button and then re-activate trailing.

TRAILING WITH OTHER TRAILING MODE
==========================================================
05-Trailing-custom.png
Trailing mode 4 offers a lot of possibilities.

With this trailing mode, you can trail your trades with Moving Averages, with the various alligator’s Moving Averages, you can also use any other external indicator to close your trades.

TRAILING 04, MOVING AVERAGES
In order to trail with Moving Averages, the edit box have to respect a proper format:

Here is the exact case:

MA/60/0/3/1/0

Where the various values stand for:

MA: Moving Average
60: MA Period (here 60)
0: MA shift (here 0)
3: MA Method (here 3 which is Linear-weighted averaging)
1: MA Price (here 1 which is PRICE_OPEN)
0: Bar shift (here 0 which mean current bar MA value)

If you are not sure about which values to use, you can always drag a Moving Average on you chart to check the appropriate settings.

Here is the representation of those settings in a Moving Average settings box:
06-Moving-Averages.png
Before to activate the Trailing mode, you can

• first set the values in the edit box,
• second, click on the MA button on the right side

A click on the MA button will display the Moving Average used for trailing on your chart.

If you are happy with the settings, you can activate trailing mode 4.

With trailing modes 1, 2 and 3 you can start trailing your trades immediately, trailing mode 4 comes with a limitation.

For example, if you have a buy order open and that you set you Moving Average too close of your price, your orders might be closed immediately. You could have the same issue if you have buy and sell orders open at the same time.

In order to avoid this issue, the EA will always check that the previous bar open value was above your MA for a buy trade and bellow the MA for a sell trade, whatever the bar shift you are using.

TRAILING 04, GATOR
With trailing mode 4, you can also trade with Alligator Moving Averages.

This trailing mode is pretty easy to use.

In order to trail your orders with the Alligator’s Green Moving Average, just input GAG into the edit box (GA stands for Gator and G for Green).

To trail with the Red one, input GAR

To trail with the Blue one, input GAB

To trail with the Purple one, input GAP

The alligator’s settings used are the one used to display the Alligator’s Moving Averages.

You can change the settings into the EA settings.

If you want to visualize the Alligator’s Mas, you can display them by using the appropriate “LI” button.

The same limitation than for Mas trailing is applicable.

TRAILING 04 CUSTOM TRAILING WITH PSAR

With trailing mode 4, you can also trade with PSAR.

This trailing mode is pretty easy to use, just input PSAR into the edit box.

Please note that PSAR settings can be changed into the EA settings and that it will only trail with the current PSAR chart timeframe (the edit box timeframe is not applicable for PSAR).

You can click on MA to display PSAR values on the chart.

TRAILING 04 CUSTOM TRAILING WITH EXTERNAL LINES (MA…)

With trailing mode 4, you can also use any external tools to trail your orders.

For example, you can use external moving averages or any other kind of indicators which display lines on your chart (lines at instrument price and not oscillator price).

In order to trail with Custom Trailing Lines, you have to input in the edit box LINE.

The same limitation than for internal MA trailing is applicable, for example, if you have a buy order open and that you set you Moving Average too close of your price, your orders might be closed immediately. You could have the same issue if you have buy and sell orders open at the same time.

In order to avoid this issue, the EA will always check that the previous bar open value was above your MA for a buy trade and bellow the MA for a sell trade, whatever the bar shift you are using.

However, in order to use this custom trailing mode, Blast needs to get from the external tool the current and previous bar value.

In order to work with Blast, you will have to edit your external tools and add a few lines of code. Those lines of code will display the current bar indicator value and the previous bar indicator value.

Here is an example with the All average indicator (available in this post), the bottom value represents the current bar MA value (126.971), the figure above represents the previous bar MA value (126.970).
LINE.png
Here the code which could be used in an indicator:

As the external indicator is not using a sub window, here we display the current and previous value on the bottom left corner. You should place this piece of code in the loop or after the loop which calculate the external indicator.
Code: Select all
   //Display External indicator values on chart for Blast usage
      //if(i == 0)
      //{     
         //Current Bar Value
         
            name = "Blast-EXT-Current";
            //ObjectCreate(0,name,OBJ_LABEL,WindowFind(IndicatorName),0,0,0,0);
            ObjectCreate(0,name,OBJ_LABEL,0,0,0,0,0);
            ObjectSetInteger(0,name,OBJPROP_CORNER,2);
            ObjectSetInteger(0,name,OBJPROP_XDISTANCE,2);
            ObjectSetInteger(0,name,OBJPROP_YDISTANCE,20);
            ObjectSetString(0,name, OBJPROP_TEXT, DoubleToStr(allAvg[0],Digits));
            ObjectSetInteger(0,name,OBJPROP_FONTSIZE,8);
            ObjectSetString(0,name, OBJPROP_FONT, "Arial");
            ObjectSetInteger(0,name,OBJPROP_COLOR,White);
            ObjectSetInteger(0,name,OBJPROP_ANCHOR,ANCHOR_LEFT_LOWER);
            ObjectSetInteger(0,name,OBJPROP_BACK,false);
            ObjectSetString(0,name,OBJPROP_TOOLTIP,"Blast EXT Current bar");

         //Previous Bar Value
            name = "Blast-EXT-Previous";
            //ObjectCreate(0,name,OBJ_LABEL,WindowFind(IndicatorName),0,0,0,0);
            ObjectCreate(0,name,OBJ_LABEL,0,0,0,0,0);
            ObjectSetInteger(0,name,OBJPROP_CORNER,2);
            ObjectSetInteger(0,name,OBJPROP_XDISTANCE,2);
            ObjectSetInteger(0,name,OBJPROP_YDISTANCE,40);
            ObjectSetString(0,name, OBJPROP_TEXT, DoubleToStr(allAvg[1],Digits));
            ObjectSetInteger(0,name,OBJPROP_FONTSIZE,8);
            ObjectSetString(0,name, OBJPROP_FONT, "Arial");
            ObjectSetInteger(0,name,OBJPROP_COLOR,White);
            ObjectSetInteger(0,name,OBJPROP_ANCHOR,ANCHOR_LEFT_LOWER);
            ObjectSetInteger(0,name,OBJPROP_BACK,false);
            ObjectSetString(0,name,OBJPROP_TOOLTIP,"Blast EXT Previous bar");
      //}
The main thing to is to always use for those objects the following name:

"Blast-EXT-Current" and "Blast-EXT-Previous"

TRAILING 04 CUSTOM EXIT WITH OSCILLATOR
With trailing mode 4, you can also use any external tools to close your orders, and especially oscillators like Stochastic, RSI…

In order to trail with Custom tools, the edit box have to respect a proper format:

Here is the exact case:

OSC/B/80/S/20

Where the various values stand for:

OSC: Oscillator Trailing
B: Buy
80: Threshold value for Buy orders
S: Sell
20: Threshold value for Sell orders

The example above can be used to trail with a Stochastic. With those settings:

For buy orders: if the previous bar stochastic value was above 80 and the current bar stochastic value drop below 80, your buy orders will be closed.

For sell orders: if the previous bar stochastic value was below 20 and the current bar stochastic value rise above 20, your sell orders will be closed.

An oscillator with 0 values for buy and sell could be used… Potentially you have unlimited possibilities.

However, in order to use this custom trailing mode, Blast needs to get from the external tool the current and previous bar value.

In order to work with Blast, you will have to edit your external tools and add a few lines of code. Those lines of code will display the current bar indicator value and the previous bar indicator value.

Here is an example with a stochastic indicator, the bottom value represents the current bar stochastic value (28.57), the figure above represents the previous bar stochastic value (44.70).
07-OSC.png
Here the code which could be used in an indicator:

At the top of the indicator add:
Code: Select all
#define     Indicator_Name             "My_Tool_Name"
In the OnInit add:
Code: Select all
IndicatorShortName(Indicator_Name);
In the indicator calculation add:
Code: Select all
   //Current Bar Value
      if(i == 0)
      {     
            string name = "Blast-EXT-Current";
            ObjectCreate(0,name,OBJ_LABEL,WindowFind(IndicatorName),0,0,0,0);
            ObjectSetInteger(0,name,OBJPROP_CORNER,3);
            ObjectSetInteger(0,name,OBJPROP_XDISTANCE,2);
            ObjectSetInteger(0,name,OBJPROP_YDISTANCE,2);
            ObjectSetString(0,name, OBJPROP_TEXT, DoubleToStr(stochK,2));
            ObjectSetInteger(0,name,OBJPROP_FONTSIZE,8);
            ObjectSetString(0,name, OBJPROP_FONT, "Arial");
            ObjectSetInteger(0,name,OBJPROP_COLOR,White);
            ObjectSetInteger(0,name,OBJPROP_ANCHOR,ANCHOR_RIGHT_LOWER);
            ObjectSetString(0,name,OBJPROP_TOOLTIP,"Blast EXT Current bar");
      }

   //Previous Bar Value
      if(i == 1)
      {     
            name = "Blast-EXT-Previous";
            ObjectCreate(0,name,OBJ_LABEL,WindowFind(IndicatorName),0,0,0,0);
            ObjectSetInteger(0,name,OBJPROP_CORNER,3);
            ObjectSetInteger(0,name,OBJPROP_XDISTANCE,2);
            ObjectSetInteger(0,name,OBJPROP_YDISTANCE,15);
            ObjectSetString(0,name, OBJPROP_TEXT, DoubleToStr(stochK,2));
            ObjectSetInteger(0,name,OBJPROP_FONTSIZE,8);
            ObjectSetString(0,name, OBJPROP_FONT, "Arial");
            ObjectSetInteger(0,name,OBJPROP_COLOR,White);
            ObjectSetInteger(0,name,OBJPROP_ANCHOR,ANCHOR_RIGHT_LOWER);
            ObjectSetString(0,name,OBJPROP_TOOLTIP,"Blast EXT Previous bar");
      }
The main thing to is to always use for those object the following name:

"Blast-EXT-Current" and "Blast-EXT-Previous"

TRAILING 04 CUSTOM TREND LINES TRAILING
With trailing mode 4, you can also use Manual Trend Lines to trail your orders.

In order to trail with Manual Trend Lines, you have to input in the edit box TL.

Then you can draw trend lines manually on your chart.

For buy trailing Trend Line make sure to input TLBUY in the trendline name.

For sell trailing Trend Line make sure to input TLSELL in the trendline name.

Here a screenshot:
Trendline.png
The same limitation than for internal MA trailing is applicable, for example, if you have a buy order open and that you set you Moving Average too close of your price, your orders might be closed immediately. You could have the same issue if you have buy and sell orders open at the same time.

In order to avoid this issue, the EA will always check that the previous bar open value was above your Trend Line for a buy trade and bellow the Trend Line for a sell trade.

TRAILING WITH RR MULTIPLES
==========================================================
08-RR.png
Trailing mode 5 act as a jumping Stop Loss.

You input your Stop Loss value in pips in the first edit box, the RR ratio used for trailing in the second edit box.

The third edit box is used to set your Stop Loss at breakeven + x pips according to a RR ration. In the fourth edit box, you can adjust the breakeven’s pips buffer.

With the settings in the screenshot above it would mean that:

Initial Stop Loss is 15 pips.
Breakeven is set at + 1 pips when

• Initial Stop Loss is 15 pips
• Breakeven is set at +1 pip when 15 pips is reached (15 SL * 1) 2 edit boxes on right side
• SL will be moved at +15 pips when +30 pips is reached
• SL will be moved at +30 pips when +45 pips is reached
• …

You can note the BE button on the right side, this button can be used at any time, even if no trailing mode is activated. Input a breakeven’s pips buffer in the edit box and click on the BE button to set your Stop Loss. This action will place a HARD Stop Loss on your Borker’s server.

OTHER TRAILING OPTIONS
==========================================================
09-BE.png
The first settings allow you to set your Stop Loss at breakeven + x pips when the floating pips are at + x pips from the average breakeven price.

With those values, the Stop Loss would be moved at breakeven + 3 pips when floating pips are > at 15 pips profit.

The last settings on the right side are used for the 3 legs trades special mode.

Those settings would manage 3 legs trades according to their description.

DRAG & DROP
==========================================================

You can drag & drop the Stop Loss lines and Take Profit lines manually on the chart.

Concerning the Stop Loss, please note that you can only move the lines closer to your breakeven price (if your Stop Loss is at risk) or closer to the current price (if your Stop Loss is in profit). This limitation is done on purpose as you want to decrease the risk and not increase it.

OTHER INFORMATION’S ABOUT TRAILING
==========================================================

When you hover your mouse over Stop Loss lines or labels, Breakeven lines or labels, Take Profit lines or labels, you will have tips information’s about your trades (Levels value, +/- pips, +/- cash, price levels, lot size…).

You also have an option in the EA settings to display or hide trades information’s on your chart’s lines. You can hide those information’s to keep your charts clean.

Remember that the trailing is based on the Buy Average Breakeven Price and/or the Sell Average Breakeven Price. If you have multiple orders opened, and you are wondering why some orders have not their Stop Loss set at Breakeven it is for this reason. You have to think at a basket of trades on your pair.

Even if no trades are open, you can activate the various trailing modes. If you have activated the Automatic Stacking function, as soon as a trade will be open automatically, it will be managed.

Once all trades are closed the various trailing modes will be de-activated.

The way those trailing mode were coded make of Blast a really handy tool. Instead of having to use various EAs to trail your trades, to modify the settings in the EAs settings… With Blast you change the settings on the fly which make of it a really dynamic and powerful tool.

Attached in this post are 3 indicators already modified as example to use custom trailing mode 4.
You do not have the required permissions to view the files attached to this post.
mntiwana liked this
#134
On click the EA displays the Auto Stacking Management Box which allow you to automatically place multiple trades:
01-AutoStack.png
Please note that in order to work correctly, once you activate one of those options, the Auto Stacking Management Box must remain open, do not hide it.

AUTO STACK WITH CANDLES
==========================================================

The EA will open trades automatically, up to the max number of trades set in the “# nb” edit box.

Example for buy orders, as soon as the bid price breaks the specified candle (depending on the shift) high + 1 pip buffer (default value in EA settings) the EA will open a new Buy trade. The EA also control that the bid break the previous candle high + 1 pip buffer to make sure that you are auto stacking in the good direction. The opposite is true for sell trades.

Once all trades have been closed, all auto stacking modes are switched to off.

When you activate the auto stack mode, you can activate buy & sell orders together. This option allows you to trade the breakout in any direction. Once the first trade in a direction is triggered, the other side mode is switch to off. In other words, if you first trade is buy, the sell mode will be automatically switched to off.

AUTO STACK WITH FRACTALS
==========================================================

Same concept than for candles but with fractal values.

The EA is using the Money Management set into the Orders Management Box to open trades.
You do not have the required permissions to view the files attached to this post.
#135
On click the EA displays the Manual Stacking Management Box which allow you to place multiple pending trades easily:
01-Manual-Stack.png
in order to use really low resource, the EA will update the values only when the button on the top right corner is clicked:
02-Manual-Stack.png
Once all the information’s are filled, click this button and then the calculation will be performed showing you the total amount of lots to open and the total margin requirement;

If lots to open or margin requirement are higher than the maximum allowed, the EA won’t show the buttons to open trades (those max values can be set into the EA settings and in the edit boxes) (controls are based on maximum margin of account balance and maximum amount of lots).

Once settings are ok, the EA will show you the buttons to place the pending trades as in the screenshot above.

One thing to note, if you don’t fill the box with a pending price, the EA will place the first pending at the current price +/- the pip step, in this example + 20 pips for buy orders. It allows to place multiple pending orders quickly.

The EA will determine automatically if it has to place “stop” orders or “limit” orders.
You do not have the required permissions to view the files attached to this post.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 11
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]