Skip to content

PositionModifiedEventArgs

Summary

Provides data for the position modification event.

Signature

1
public class PositionModifiedEventArgs

Namespace

cAlgo.API

Properties

Name Description
Position { get; } Gets or sets the modified position.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 using cAlgo.API;
 namespace cAlgo.Robots
 {
     // This sample shows how to use PositionModifiedEventArgs
     [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class PositionModifiedEventArgsSample : Robot
     {
         protected override void OnStart()
         {
             Positions.Modified += Positions_Modified;
         }
         private void Positions_Modified(PositionModifiedEventArgs obj)
         {
             Print("Position {0} modified", obj.Position.Id);
         }
     }
 }

See Also


Last update: June 26, 2022

Comments