Advertisement
Guest User

ptmc

a guest
Jul 27th, 2016
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.66 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using System.Drawing;
  6. using PTLRuntime.NETScript;
  7.  
  8. namespace Example
  9. {
  10.     /// <summary>
  11.     /// Example
  12.     ///
  13.     /// </summary>
  14.     public class Example : NETStrategy
  15.     {
  16.         TestClass test = new TestClass();
  17.         public Example()
  18.             : base()
  19.         {
  20.             #region Initialization
  21.             base.Author = "";
  22.             base.Comments = "";
  23.             base.Company = "";
  24.             base.Copyrights = "";
  25.             base.DateOfCreation = "27.07.2016";
  26.             base.ExpirationDate = 0;
  27.             base.Version = "";
  28.             base.Password = "66b4a6416f59370e942d353f08a9ae36";
  29.             base.ProjectName = "Example";
  30.             #endregion
  31.  
  32.  
  33.         }
  34.        
  35.         /// <summary>
  36.         /// This function will be called after creating
  37.         /// </summary>
  38.         public override void Init()
  39.         {
  40.             double ask = test.getAsk();
  41.             //mql4.Comment("Ask: ", ask);      
  42.         }        
  43.  
  44.         /// <summary>
  45.         /// Entry point. This function is called when new quote comes
  46.         /// </summary>
  47.         public override void OnQuote()
  48.         {
  49.  
  50.         }
  51.        
  52.         /// <summary>
  53.         /// This function will be called before removing
  54.         /// </summary>
  55.         public override void Complete()
  56.         {
  57.            
  58.         }
  59.      }
  60.    
  61.     public class TestClass
  62.     {
  63.         //public PTLRuntime.NETScript.mql4 mql = new PTLRuntime.NETScript.mql4();
  64.         public mql4 mql = new mql4();
  65.        
  66.         public TestClass()
  67.         {
  68.            
  69.         }
  70.         public double getAsk()
  71.         {
  72.             return(mql.Ask);
  73.             //return(1.0);
  74.         }
  75.     }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement