Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Text;
- using System.Drawing;
- using PTLRuntime.NETScript;
- namespace Example
- {
- /// <summary>
- /// Example
- ///
- /// </summary>
- public class Example : NETStrategy
- {
- TestClass test = new TestClass();
- public Example()
- : base()
- {
- #region Initialization
- base.Author = "";
- base.Comments = "";
- base.Company = "";
- base.Copyrights = "";
- base.DateOfCreation = "27.07.2016";
- base.ExpirationDate = 0;
- base.Version = "";
- base.Password = "66b4a6416f59370e942d353f08a9ae36";
- base.ProjectName = "Example";
- #endregion
- }
- /// <summary>
- /// This function will be called after creating
- /// </summary>
- public override void Init()
- {
- double ask = test.getAsk();
- //mql4.Comment("Ask: ", ask);
- }
- /// <summary>
- /// Entry point. This function is called when new quote comes
- /// </summary>
- public override void OnQuote()
- {
- }
- /// <summary>
- /// This function will be called before removing
- /// </summary>
- public override void Complete()
- {
- }
- }
- public class TestClass
- {
- //public PTLRuntime.NETScript.mql4 mql = new PTLRuntime.NETScript.mql4();
- public mql4 mql = new mql4();
- public TestClass()
- {
- }
- public double getAsk()
- {
- return(mql.Ask);
- //return(1.0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement