-
Notifications
You must be signed in to change notification settings - Fork 2k
Neural Strategy Trade Signals Possibly Inverted #957
Comments
Tested STDDEV with reversed b/s signals = 3.57% profit, maybe all the b/s signals need to be reversed? |
i tested the STDDEV strategy with standard signals with some profit too :/ |
lets test longer, and coincidence doesn't exist, someone told me this before, i thought the guy was joking |
atm i get a javascript heap OOM error but 2 days ago i tested with a lot of simulations, all with profit (with STDDEV and Neural) (+14 days) this isn't the first time that someone complains about this problem |
what about live trades? Anyone trying that? Profit in sims don't guarantee live profit, and that's where it counts! |
simulation doesn't guarante profit because you are not waiting someone to fill your order (like in real trading) but at least you must have the right (buy and sell) signals |
Try these settings in sim: zenbot sim gdax.BTC-USD --strategy neural --buy_pct 99 --sell_pct 99 --markup_sell_pct 0.33 --markdown_buy_pct 0.33 --period 8s --max_sell_loss_pct 10 --sell_stop_pct 20 --buy_stop_pct 20 --neurons_1 100 --depth 4 --min_periods 200 --min_predict 20 --learns 200 --profit_stop_enable_pct 50 --profit_stop_percent 50 --max_slippage_pct 5 --poll_trades 6000 --order_poll_time 3000 --order_adjust_time 3000 --rsi_periods 14 |
With the change I can't get profits in sim easily, but in live it seems to be buying low and selling high more often than not. |
Are you using the settings above for the live trading with reverse strat? |
yes |
@luponata |
Still testing, i'll update you, in 2 days (too busy now) happy new year! |
@luponata Did you get a chance to run any tests? |
@luponata curious if you had a chance to run those tests? |
@luponata Do you have the results from your testing? |
Dem test tho... |
Also curious about this and if there has been any updates to the code? Seems |
System information
Describe the problem
The description for the Neural Strategy is "Buy = mean(last 3 real prices) < mean(current & last prediction)" I understand this to be that if the real mean is 5 and the predicted mean is 10 then it should buy because the price is low now and predicted to go up. But the code for the strat seems to do the opposite.
Line 91 of the strategy code says that global.sig0 is true if the predicted mean is less than the current mean. If true then buy, if false then sell... In my example above the real mean is 5 and the predicted mean is 10 so this code would actually trigger a sell signal.
It seems that it needs to be changed to read "global.sig0 = global.meanp > global.mean". Running this in the sim does not yield the expected results and I am not sure why, but the basic logic behind what I am saying seems sound.
Am I missing something obvious? or is the code backwards?
Source code / logs
Lines 90-104 of zenbot/extensions/strategies/neural/strategy.js
The text was updated successfully, but these errors were encountered: