How to start with MetaTrader and forex, the beginning - page 14

 

Forum on trading, automated trading systems and testing trading strategies

Repainting Articles

Sergey Golubev, 2013.07.09 12:26

I did not find education trading articles about repainting and non-repainting. I think - you should look at the forum posts.

For example - there are the following indicators by categories :

- non-repainting. Most of the indicators are inside this category (most of the indicators are non-repainting). It means: if you see the signal so wait for the bar with the signal to be closed and new bar is opened. Traders are using non-repainting indicators to trade on close bar (classical way of trading for most of the traders). Some people confused 'non-repainting' with 'continuing painting'. For example, open bar is continuing paiting by itself together with value of any indicator. Close bar is not repainting by value together with non-repainting indicator.

- repainting indicators. There are many of them which were created especially for some different cases. Zigzag for example. Some of those indicators are used as the filters to filter false 'non-repainting signals' from the other indicators.

- re-calculating indicators. The values of those indicators are recalculated for n number of the bars. Indicators can be used a the filters or for technical analysis (not for direct trading).

- repainting by mistake made by coders. There are many examples of the indicators coded by coders in repainting way as the mistake (such as super signals etc).

===========

Sometimes - the people confused repainting with contrinuing painting, and trading on open bar with trading on close bar. We are having a lot of threads/articles  about programming but just few threads about how to trade in practical way with a lot of indicators in CodeBase for example :)

Forum on trading, automated trading systems and testing trading strategies

Repainting Articles

Sergey Golubev, 2013.07.09 12:29

Just an example with PriceChannel Parabolic system (indicators, templates and howto instal and howto trade - are on this post by links):




So, this is classical way of trading - trading on close bar.


 

Developing a cross-platform Expert Advisor to set StopLoss and TakeProfit based on risk settings 

Developing a cross-platform Expert Advisor to set StopLoss and TakeProfit based on risk settings

As you probably know, following of money management rules is highly recommended for any trading. It means that one is not recommended to enter a trade in which more than N% of deposit can be lost.

N is chosen by the trader. In order to comply with this rule, one should correctly calculate the trading lot value.

At relevant master classes, presenters usually show a ready Excel file, which includes relevant lot calculation formulas for each symbol. And thus they obtain the required lot value by "simply entering" their stop loss value.

Is this really that "simple"? The lot calculation operation can take a minute or more. So when you finally determine the lot size, the price can move very far from the intended entry point. Moreover, this requires from you performing of extra operations. Another disadvantage of this method, is that manual calculations often increase the chance of making an error. 

So let's try make this process really simple. To do this, we will create an Expert Advisor for setting the opening and Stop Loss prices in the visual mode. Based on these parameters and your risk value, the EA will set the appropriate lot value and will open a position in the relevant direction.

 

Extract profit down to the last pip 

Extract profit down to the last pip

This article covers one of algo trading approaches. It is not directly related to MetaQuotes platforms and is intended for broad masses. If any of the terms is not clear for you, please use search options. The purpose of this article is to find a profitable trading system (or a trading robot).
 

South African broker QuickTrade launches MetaTrader 5 and offers JSE stock trading 


Desktop and web platform versions, as well as mobile apps for Android and iOS, have become available to the company's clients. The offering incorporates 190 trading symbols, including Forex pairs, international stock indices, commodity contracts and Johannesburg Stock Exchange instruments.

QuickTrade is an FSCA (the Financial Sector Conduct Authority) regulated broker which started providing services back in 2014.

South African broker QuickTrade launches MetaTrader 5 and offers JSE stock trading
South African broker QuickTrade launches MetaTrader 5 and offers JSE stock trading
  • 2019.09.03
  • MetaQuotes Software Corp.
  • www.metatrader5.com
Desktop and web platform versions, as well as mobile apps for Android and iOS, have become available to the company's clients. The offering incorporates 190 trading symbols, including Forex pairs, international stock indices, commodity contracts and Johannesburg Stock Exchange instruments. Hedging accounts Negative balance protection...
 

Forum on trading, automated trading systems and testing trading strategies

New version of MetaTrader 5 build 2190 platform

MetaQuotes Software Corp. , 2019.11.06 20:14

The beta version of MetaTrader 5 build 2201 has been released.

Update is available through Help -> Check for Updates.


 

As the people are continuing asking about how to select the signal so subscribe so I am reminding the following:

----------------

Just some information about the Signal Service:

This is the information about where to start to.

------------

From the rules -

  • Signals based on real accounts are available only by paid Subscription; signals based on demo accounts can be received only by free Subscription.
  • Signals based on cent accounts cannot have paid Subscription. Such Signals are available only in the MetaTrader terminal for free. A cent account is defined automatically. In case a Signal is defined incorrectly, the service Administration may assign this property to the Signal manually.
Trading Signals showcase in MetaTrader 4/5
Trading Signals showcase in MetaTrader 4/5
  • 2015.03.09
  • www.youtube.com
How to choose a trading signals and subscribe to it in MetaTrader Platforms? Its easy! Watch the video and you will know everything about trading signals.
 

Forum on trading, automated trading systems and testing trading strategies

New MetaTrader 4 Platform build 1260

MetaQuotes, 2020.01.23 09:54

The MetaTrader 4 update will be released on Friday, January the 24th, 2020. The update provides bug fixes and stability improvements.

The new version will be available through the Live Update system.


 
Simple Advisor with Stop Loss and Take Profit- go the post #21 to download.

Forum on trading, automated trading systems and testing trading strategies

How to start with MQL5

Vladimir Karputov, 2020.03.05 18:31

Simple Advisor with Stop Loss and Take Profit

An example of a simple Expert Advisor that opens one position with the indicated Stop Loss and Take Profit.


To give a trade order to open a position with Stop Loss and Take Profit, you need to calculate these levels:

Stop Loss and Take Profit


Variables declared at the global program level (in the 'header' of the adviser):

To send trade orders, use the CTrade trading class

#property version   "1.000"
//---
#include <Trade\Trade.mqh>
//---
CTrade         m_trade;                         // object of CTrade class
//--- input parameters


Input parameters:

I always prefer to set Stop Loss and Take Profit levels in whole types (more precisely in 'ushort')

//--- input parameters
input ushort   InpStopLoss          = 150;      // Stop Loss, in points (1.00045-1.00055=10 points)
input ushort   InpTakeProfit        = 460;      // Take Profit, in points (1.00045-1.00055=10 points)
input ulong    InpMagic             = 200;      // Magic number
//+------------------------------------------------------------------+
//| Expert initialization function                                   |


OnTick:

Using PositionsTotal, we determine if there are positions or not. If there are no positions, first we get fresh prices (we do this with SymbolInfoTick). Attention: this is a very simple version - there are not many necessary checks!

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   if(PositionsTotal()==0)
     {
      MqlTick tick;
      if(SymbolInfoTick(Symbol(),tick))
        {
         double sl=(InpStopLoss==0.0)?0.0:tick.ask-InpStopLoss*Point();
         double tp=(InpTakeProfit==0.0)?0.0:tick.ask+InpTakeProfit*Point();
         m_trade.Buy(0.01,Symbol(),tick.ask,sl,tp);
        }
     }
  }


Result:

Simple Advisor with Stop Loss and Take Profit


Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator
  • www.mql5.com
MetaQuotes Programming Language 5 (MQL5), included in MetaTrader 5 Client Terminal, has many new possibilities and higher performance, compared to MQL4. This article will help you to get acquainted with this new programming language. The simple examples of how to write an Expert Advisor and Custom Indicator are presented in this article. We...
Reason: