Topics

Forum Topics not found

Replies

ctid241637
06 Sep 2016, 07:50

RE:

Hi tmc,

Just wanted to say thanks for your responses here.  Not sure if they helped OP but they sure helped me, thank you!

tmc. said:

Add this anywhere in the class.

protected override void OnTick()
{
    foreach (var position in Positions.FindAll("SampleRSI", Symbol))
    {
        if (position.StopLoss != position.EntryPrice)
        {
            if (position.Pips >= 50)
            {
                ModifyPosition(position, position.EntryPrice, position.TakeProfit);
            }
        }
    }
}

 

 


@ctid241637