alleyway / add-tradingview-alerts-tool

Automated entry of TradingView alerts for bot trading tools such as 3Commas, Alertatron, CryptoHopper, etc.
MIT License
636 stars 141 forks source link

[help] message section is not change #85

Closed avatar-lavventura closed 3 years ago

avatar-lavventura commented 3 years ago

I am unable to update the message section. I am not sure why its not working. Any help would be helpful.

I have following setup (config.yml) file:

files:
  input: pairs.csv
tradingview:
  chartUrl: https://www.tradingview.com/chart/wWjs7nTb/?symbol=BITSTAMP%3ABTCUSD
  interval: 1m  
alert:
  condition:
    primaryLeft: mynameis
  actions:
    notifyOnApp: false
    showPopup: false
    sendEmail: false
    webhook:
      enabled: true
      url: "https://url.org/webhook"
message: >
  {   {{ticker}},
      {{strategy.order.action}},
      {{strategy.order.alert_message}},
      {{close}},
      {{strategy.position_size}},
      {{strategy.prev_market_position}},
      {{strategy.prev_market_position_size}},
  }
//@version=4
strategy(title="", shorttitle="mynameis")
...
mlake commented 3 years ago

hi there - can you be more specific about the problem?

at first glance, it seems you need to indent the whole "message" section - should be on the same level as actions and condition

avatar-lavventura commented 3 years ago

Everything works fine, just message section while setting the alert was not updated. The problem seems like "message" section was not under the alert:.

It should be as follows than:

alert:
  condition:
    primaryLeft: mynameis
  actions:
    notifyOnApp: false
    showPopup: false
    sendEmail: false
    webhook:
      enabled: true
      url: "https://url.org/webhook"
  message: >
    {{{ticker}},
    {{strategy.order.action}},
    {{strategy.order.alert_message}},
    {{close}},
    {{strategy.position_size}},
    {{strategy.prev_market_position}},
    {{strategy.prev_market_position_size}},}
mlake commented 3 years ago

👍