Announcement

Collapse
No announcement yet.

T&S position size?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • T&S position size?

    I am trying to access T&S position size and am looking to create an alert for specific size.

    I think it would be something like;

    if size is 9999 Give me an Alert!
    if size is _______ then Alert me!

    I am not sure how to write it yet and am wondering if anyone has any thoughts on how to do this?


    thanks
    Brian

    Getsize()
    get_________size()
    ??

  • #2
    Brian
    The sample code enclosed below should do what you are looking for. Copy it to the main function of any efs and replace your_value with the trade size that will be required to trigger the alert
    Alex

    PHP Code:
    if(getMostRecentTradeSize() >= your_value){
        
    Alert.playSound();
        
    Alert.addToList(getSymbol(),"Trade size larger than ___",Color.black,Color.red);

    Comment

    Working...
    X