Skip to content

Instantly share code, notes, and snippets.

@bennotti
Created November 4, 2022 13:19
Show Gist options
  • Save bennotti/927bf434885b671a4e4e4f17dddd5a7a to your computer and use it in GitHub Desktop.
Save bennotti/927bf434885b671a4e4e4f17dddd5a7a to your computer and use it in GitHub Desktop.

Revisions

  1. bennotti created this gist Nov 4, 2022.
    57 changes: 57 additions & 0 deletions sample.mq5
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    //+------------------------------------------------------------------+
    //| sample.mq5 |
    //+------------------------------------------------------------------+
    #property copyright "Copyright 2021, xyz"
    #property link "https://www.xyz.com.br"
    #define TESTE_VERSAO "1.000"// xxx.yyy
    #property version TESTE_VERSAO

    #property description "xyz."
    #property description "xyz. "
    #property description "xyz"


    int OnInit() {
    EventSetTimer(1);
    return(INIT_SUCCEEDED);
    }

    void OnDeinit(const int reason) {
    EventKillTimer();
    ::Comment("");
    }

    void OnTick(){
    }

    void OnTimer() {
    }

    void OnTradeTransaction(const MqlTradeTransaction& trans,
    const MqlTradeRequest& request,
    const MqlTradeResult& result)
    {
    }

    void OnChartEvent(const int id,
    const long &lparam,
    const double &dparam,
    const string &sparam)
    {
    }

    void OnBookEvent(const string &symbol)
    {
    }

    double OnTester() {
    }

    void OnTesterInit() {
    }

    void OnTesterPass() {
    }

    void OnTesterDeinit() {
    }