Ein beispielhaftes Skript, das Z-Score auf einem Handelskonto berechnet:
//+------------------------------------------------------------------+ //| Get_Z.mq4 | //| Copyright © 2007, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2007, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #include <Z_include.mqh> //+------------------------------------------------------------------+ //| script program start function | //+------------------------------------------------------------------+ int start() { //---- Print("Z-score of trades made on account ",AccountNumber()," is equal to ",DoubleToStr(getZ(),2)); //---- return(0); } //+------------------------------------------------------------------+
Die Header-Datei, Normal Probability.mq4, enthält ein Beispiel für die normale Verwendung des Arrays.
Übersetzt aus dem Russischen von MetaQuotes Ltd.
Originalpublikation: /ru/code/7452