TradingView
pAulseperformance
12 Th03 2016 18:34

MA Cross - ***Programmers*** Please help with alertcondition()  

Dow Jones FXCM Dollar IndexFXCM

Mô tả

Hello Traders and coders,

Here is a fundamental version of a moving average cross trading strategy that works on 1H and 4H timeframes.

It's very simple and would be well paired with proper technical analysis and risk management.

I am looking to use this to alert me of potential setups. I could not get the alertcondition function to work properly. If anyone can help me with that please comment or message me.
Bình luận
Kamelancien
Alertconditon dont work in strategy only in study ;)
oh92
If you have yet to figure this out, I would be happy to help
scarf
I'm sure you've figured this out after 5 months, but for anyone having the same problem I'm pretty sure it's because alertcondition doesn't work if the script is a strategy. Only if it's a study (the relevant part is mentioned on line 2) - I'm not fully confident this is the case, but there's so like Pine script info available online I figured I'd try and contribute.
scarf
*little
burakachey
@scarf, Replying to your edit - thanks for the information. Any one else still trying to figure this out, this is the case. You cannot have it as a strategy, it must be a study.
rlone9440
No input options. Would be an excellent idea if authors would give the option of LONG/SHORT or BOTH.
Thêm nữa