Points VS Pips - page 65

 
Aleksandr Klapatyuk:

what if you adjust the EA?

how many pips will be in the terminal? when will these numbers be reached?

you give an example of what not to do:

//--- tuning for 3 or 5 digits
   int digits_adjust=1;
   if(m_symbol.Digits()==3 || m_symbol.Digits()==5)
      digits_adjust=10;
   m_adjusted_point=m_symbol.Point()*digits_adjust;

   m_stop_loss             = InpStopLoss              * m_adjusted_point;
   m_take_profit           = InpTakeProfit            * m_adjusted_point;

-- you can't be sure and by default multiply all parameters in pips by a factor of 10 -- that way you lose the advantage of a 5-digit number.

Not to mention that the entry:

input ushort   InpStopLoss          = 15;          // Stop Loss, in pips (1.00045-1.00055=1 pips)
input ushort   InpTakeProfit        = 46;          // Take Profit, in pips (1.00045-1.00055=1 pips)

-- erroneous -- and, judging by the already 60-page ramblings of the current thread, is steadily misleading

 
Andrey Gladyshev:
Let me add a little oil to the fire (popcorn to fry)))
In MT4 there is no point in splitting an item, because there
each position is by itself.
And in MT5 (we mean netting) on any instrument
there is always one position. Therefore, when adding at different levels
The total price of the position may become fractional.

After all, the price of a position is not a quote.

 
Dmitry Fedoseev:

First look at how the rate actually changes there. Where is that 1/8 of 1/32 there? Saw the sign on the barn and looked inside the barn and it's different.

Why do I have to figure it out? Your argument, you figure it out, explain it when you figure it out.

I see a picture here:

Where can you see 1/8 of 1/32 here? And one of the characters has a change altogether - UNCH.

I can't figure it out for myself )).
I do not need to figure it out, I understand everything perfectly )))
Count how many pips there are in a pip and write how much one pip is worth in money.

Files:
pips.png  31 kb
 
Andrey Gladyshev:
And then there's another question in the general mix.
It's kind of like the five digits on forex DCs came up with.
Let's say the steps on the old points are coming from
quote provider (presumably).
Could it be that the fifth digit in the price
is the action within the DC?

Maybe... not just the fifth.

 
Andrey F. Zelinsky:

you give an example of how not to do it:

-- you can't be sure and default to multiply all parameters in points by a factor of 10 -- that's how you lose the advantage of 5-digits.

Not to mention that the entry:

-- erroneous -- and, judging by the already 60-page ramblings of the current thread, is steadily misleading

so how many points will there be in the terminal itself ?

and also the code - which - according to you is erroneous. the MACD Sample from the terminal itself is used.

//+------------------------------------------------------------------+
//|                                                  MACD Sample.mq5 |
//|                   Copyright 2009-2017, MetaQuotes Software Corp. |
//|                                              http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright   "Copyright 2009-2017, MetaQuotes Software Corp."
#property link        "http://www.mql5.com"
#property version     "5.50"
#property description "It is important to make sure that the expert works with a normal"
#property description "chart and the user did not make any mistakes setting input"
#property description "variables (Lots, TakeProfit, TrailingStop) in our case,"
#property description "we check TakeProfit on a chart of more than 2*trend_period bars"

#define  MACD_MAGIC 1234502
//---
#include <Trade\Trade.mqh>
#include <Trade\SymbolInfo.mqh>
#include <Trade\PositionInfo.mqh>
#include <Trade\AccountInfo.mqh>
//---
input double InpLots          =0.1; // Lots
input int    InpTakeProfit    =50;  // Take Profit (in pips)
input int    InpTrailingStop  =30;  // Trailing Stop Level (in pips)
input int    InpMACDOpenLevel =3;   // MACD open level (in pips)
input int    InpMACDCloseLevel=2;   // MACD close level (in pips)
input int    InpMATrendPeriod =26;  // MA trend period
//---
int ExtTimeOut=10; // time out in seconds between trade operations
//+------------------------------------------------------------------+
//| Initialization and checking for input parameters                 |
//+------------------------------------------------------------------+
bool CSampleExpert::Init(void)
  {
//--- initialize common information
   m_symbol.Name(Symbol());                  // symbol
   m_trade.SetExpertMagicNumber(MACD_MAGIC); // magic
   m_trade.SetMarginMode();
   m_trade.SetTypeFillingBySymbol(Symbol());
//--- tuning for 3 or 5 digits
   int digits_adjust=1;
   if(m_symbol.Digits()==3 || m_symbol.Digits()==5)
      digits_adjust=10;
   m_adjusted_point=m_symbol.Point()*digits_adjust;
//--- set default deviation for trading in adjusted points
   m_macd_open_level =InpMACDOpenLevel*m_adjusted_point;
   m_macd_close_level=InpMACDCloseLevel*m_adjusted_point;
   m_traling_stop    =InpTrailingStop*m_adjusted_point;
   m_take_profit     =InpTakeProfit*m_adjusted_point;
//--- set default deviation for trading in adjusted points
   m_trade.SetDeviationInPoints(3*digits_adjust);
//---
   if(!InitCheckParameters(digits_adjust))
      return(false);
   if(!InitIndicators())
      return(false);
//--- succeed
   return(true);
  }
//+------------------------------------------------------------------+
 
Roman:

But it's not up to you to figure it out )).
I don't need to figure it out, I understand it all perfectly ))

Why should I? As long as I see the sign on the barn and its inconsistency with reality. That's enough. There have been plenty of pictures with fractional points here before, but it's no use.

You see... As usual with everyone here - everyone understands, but no one can say anything.

 
Dmitry Fedoseev:

Why should I? As long as I see the writing on the barn and its inconsistency with reality. You see... As usual with everyone here - everyone understands, but no one can say anything.

Because you don't want to hear and try to count how many pips in a pip, you don't need it, you have your own wave.
Why explain to a person who does not need it?
Write me how much is one point of ZT ?

 
Roman:

Because you don't want to hear and try to count how many pips in a pip, you don't need it, you have your own wave.
Why explain to someone who doesn't need it?
Write me how much is one point of ZT ?

I don't know what the item is called and I have no idea where the pip is or what it is.

So far I only see the discrepancy between these fancy tables and the quotes shown there, and I have no idea how to compare them.

 
Andrey F. Zelinsky:

you give an example of how not to do it:

-- you can't unapologetically and by default multiply all parameters in points by a factor of 10 -- that way you lose the advantage of 5-digits.

Not to mention that the entry:

-- erroneous -- and, judging by the already 60-page ramblings of the current thread, steadily misleading

input int InpTakeProfit =50;//Take Profit(in pips)

in the terminal - it will already show your profit of 500 pips

 
Item is most likely the first digit, because it is the first digit, so Item. Truth
Reason: