FORTS: Per aiutare i principianti - pagina 9

 
Dmi3:

Qual è il senso di questa profonda riflessione?

Per impedirvi di scrivere sciocchezze

 
Alexey Viktorov:

E dopo, gambe fino al mento...

:)

 
prostotrader:

Per non scrivere sciocchezze

Qualsiasi funzione di posizione mostrerà delle assurdità in certi momenti se c'è più di un algoritmo in esecuzione sullo strumento. Se ci sono più di cento algoritmi che lavorano sul simbolo, queste funzioni mostreranno quasi sempre spazzatura.

Per i programmatori di EAs indicatori sul mercato, come te, rendono la codifica più facile. È per questo che sono fatti :)

Penso che a questo punto concluderò la mia comunicazione con voi.

 
Dmi3:

Qualsiasi funzione di posizione mostrerà delle assurdità in certi momenti se c'è più di un algoritmo in esecuzione sullo strumento. Se ci sono più di cento algoritmi in esecuzione sullo strumento, queste funzioni mostrano quasi sempre delle assurdità.

Per i programmatori di EAs indicatori sul mercato, come te, rendono la codifica più facile. È per questo che sono fatti :)

Credo che a questo punto finirò la comunicazione con voi.

È molto positivo che tu abbia rinunciato.

Codice

//+------------------------------------------------------------------+
//|                                                Test_PosSelet.mq5 |
//|                                      Copyright 2021 prostotrader |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2021 prostotrader"
#property link      "https://www.mql5.com"
#property version   "1.00"

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
    if(PositionSelect(Symbol()) == true)
    {
      double vol = PositionGetDouble(POSITION_VOLUME);
      double price = PositionGetDouble(POSITION_PRICE_OPEN);
      Print("Chart ID: ", ChartID(), "; Pos rrice open: ", price,  "; Pos volume: ", vol);
    }
    else Print("Chart ID: ", ChartID(), "; Function not work!");
  }

Screenshot


Risultato

2021.02.19 21:54:14.774 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342797262733; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,M1)     Chart ID: 132582340710023350; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342041799523; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342216199498; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342355167447; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341172109780; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341667948140; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342797262733; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342657884761; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:15.725 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341893791058; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,M1)     Chart ID: 132582340710023350; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341172109780; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341667948140; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341893791058; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342355167447; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342216199498; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342041799523; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342657884761; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:16.452 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342797262733; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,M1)     Chart ID: 132582340710023350; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342041799523; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341667948140; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341893791058; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582341172109780; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342657884761; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342355167447; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342216199498; Pos rrice open: 146540.0; Pos volume: 1.0
2021.02.19 21:54:17.762 Test_PosSelet (RTS-3.21,H1)     Chart ID: 132582342797262733; Pos rrice open: 146540.0; Pos volume: 1.0

C'è un sacco di chiacchiere "in corso" qui intorno ....

 
prostotrader:

È molto bello scendere.

Codice

Screenshot


Risultato

Un sacco di chiacchiere "in giro" qui ....

Un giorno, quando passerete dal trading in modalità test e demo al mercato reale, provate coerentemente quanto segue:

-comprare algo 1 2 lotti

-Vendere algo 2 3 lotti

-Acquista 1 4 lotti

ecc.

poi richiedere Posizione su uno qualsiasi degli algoritmi.

Ma comunque, rimani nel tuo gruppo junior, sei a tuo agio qui.

 
Dmi3:

Un giorno, quando passerai dal trading in modalità test e demo al mercato reale, prova i seguenti in sequenza circa

-comprare algo 1 2 lotti

-Vendere algo 2 3 lotti

-Acquista 1 4 lotti

ecc.

poi richiedere Posizione su uno qualsiasi degli algoritmi.

Ma comunque, rimani nel tuo gruppo junior, sei a tuo agio qui.

Non hai bisogno di scaccolarti?

Libero

 
Mi viene in mente un film popolare - Il favoloso D...b.)
 
Dmitriy Skub:
Mi viene in mente un film popolare - Il favoloso D...b.)

quercia?

 
Valeriy Yastremskiy:

quercia?

Quasi, ma più a lungo)
 
prostotrader:

Non hai bisogno di scaccolarti?

Libero

Come al solito, non hai niente da dire sulla questione?

Motivazione: