Can I define a variable that could be used by another signal
-
- Posts: 61
- Joined: 25 Jul 2013
- Has thanked: 18 times
Can I define a variable that could be used by another signal
As per the subject. For example I have 2 signal in my strategy: 1) LongEntry, 2) stoploss. In LongEntry, I called Buy next bar at market;, In stoploss, I called setstoploss(amt); where amt is calculated in LongEntry signal.
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Can I define a variable that could be used by another si
Look up:As per the subject. For example I have 2 signal in my strategy: 1) LongEntry, 2) stoploss. In LongEntry, I called Buy next bar at market;, In stoploss, I called setstoploss(amt); where amt is calculated in LongEntry signal.
i_setplotvalue
i_getplotvalue