Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
3310
Rating:
(15)
Published:
2018.06.16 10:57
SD_M_Swap.mq5 (22.63 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

A script for showing the swap value on a financial instrument. The texts of positive and negative swaps are shown in different colors.

I have been regularly using it for long. For some reasons, it has turned out to be more optimal for me as a script than as an indicator. I'm publishing it since I suppose it may be useful not only for me.

Along with swap values, it displays on the chart:

  • Name of the financial instrument. This may be helpful when the chart symbol changes subsequently.
  • Date and time of when the values were defined. There can be that swap may changes sometimes, so it may be necessary to run such a script on the chart again.

swap


Inputs

  • i_delete_text_only - if you choose true, then this script will only delete the text set before using the script, and it will not set a new one;
  • i_color_plus - color for the text of a positive swap;
  • i_color_minus - color for the text of a negative swap;
  • i_font_size - font size;
  • i_y - distance for the text along the y axis in pixels (referencing from the chart top).

inputs

Note: Using this utility, if necessary, is combined with using another one (SD Swap), using which you can show the swap on the Expert Advisors tab either for all symbols or for the symbols selected in the Market Watch window. Utility SD Swap can also show the swap only for the symbols, where swap long or swap short is positive.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20681

AlliHeik AlliHeik

Trading on indicator Heiken Ashi Smoothed Oscillator. Settings for placing Stop Loss, Take Profit, and Trailing the positions.

Surefirething Surefirething

Working with pending Buy Limit and Sell Limit orders. Trailing the positions is possible.

McClellan_Oscillator McClellan_Oscillator

Sherman and Marian McClellan Oscillator.

AD_Indicator AD_Indicator

Sherman and Marian McClellan Advances/Declines Indicator.