VitalySvyatyuk / pocket_option_trading_bot

Bot for autotrade in Pocket Option
31 stars 22 forks source link

Can you read indicator values #1

Closed x-ender closed 7 months ago

x-ender commented 8 months ago

Assuming I have a strategy that help me derive signals with the help of indicators.. and I want to automate it, can it be implemented. I mean, can you read indicator values in code and provide signals based on certain indicators values.

Waldi2130 commented 7 months ago

Yeah, but I want to customize it to work on fractals. :(

VitalySvyatyuk commented 7 months ago

You don't need Fractals. It's an indicator that repaints, and you can use its values by few candles ago. That's why it shows good results on historical data, where all candles are known. In realtime it's not very helpful. Try to use instant indicators, like psar or macd etc.

Leoalv72 commented 3 months ago

Hi, I am trying to use the PSAR indicator from [po_bot_indicators.py} but I don't get it correctly. With the Option (.is_reversal) no longer returns the correct values, I notice that the SAR values ​​aren't inconsistent respect to their normal values ​​(eg, as the indicator values ​​in Traidingview) that reflect the value of the price at the point indicated by the PSAR My code is like this:

if psar[-1].is_reversal:

if psar[-1].is_reversal:
    do_action('put')
else:
    do_action('call')

Any suggestion of how this indicator works and how to take real values? Thanks so much.

Leoalv72 commented 3 months ago

image

...This is a good capture.. you can see the is_reversal and sar values printed in the Terminal and the erratic signal in the Closed Tab in referal to the Psar poits in the graph. To this case I change the signal in the If Else, but is the same problem in contrary case.

Leoalv72 commented 3 months ago

I Watch the last values for Psar[-1] and notice the value for date is not the same of the actual time.. it was hour 23:46 and my times was 20:40 (10:40pm), I have the same time in PO. I think that is the reason why the values ​​do not correspond to the graph. Any Idea for that? image