/dnm/ - darknet markets

Dread is for losers and idiots.


New Reply on thread #271
X
Max 20 files0 B total
[New Reply]

[Index] [Catalog] [Banners] [Logs]
Posting mode: Reply [Return]


# handle new data with experimental indicator
def handle_new_bar(data, emit, atoms):
    #!BLOCKS
    if data.Custom(indicator_id="61eb1776ffff157870423b97") > data.bar.close:
        emit.Buy(type="max", reason="Indicator Exp > close")
    
    if data.Custom(indicator_id="61eb1776ffff157870423b97") < data.bar.close:
        emit.Sell(type="max", reason="Indicator Exp < close")
    #!ENDBLOCKS





Post(s) action:


Moderation Help
Scope:
Duration: Days

Ban Type:


4 replies | 0 file
New Reply on thread #271
Max 20 files0 B total