alm0ra / paper_trading_view

PTV is a useful widget for trading view for doing paper trading when bar reply is enabled.(this feature did not implement in trading view)
MIT License
58 stars 9 forks source link

Market order #6

Open Ramblingjack opened 2 years ago

Ramblingjack commented 2 years ago

Sometimes the market order will not work and say invalid tp and sl even though it is not.

alm0ra commented 2 years ago

@Ramblingjack Please tell more information about your issue You can write an example that cause of this issue

Ramblingjack commented 2 years ago

Yes, once it happens to me again i will post an example. so sometimes i wont be able to use market order, it will say invalid sl and tp. even though if i switch it to limit with exactly the same numbers, then it will work.

alm0ra commented 2 years ago

@Ramblingjack i guess it because you choose a price near your enter price . because in PTV i get last close price from trading view and when you want open new position some times this issue may be happen but please send me more information

Ramblingjack commented 2 years ago

I'll monitor it and provide more detailed information.

Ramblingjack commented 2 years ago

image

Ramblingjack commented 2 years ago

if i choose limit and write in price image

Ramblingjack commented 2 years ago

Although the trade did not open when i used the limit, even though it tagged the price on the next candle as well.

alm0ra commented 2 years ago

dear @Ramblingjack
first try to decrease speed of bar reply do not use maximum speed . second i guess it happen when we have a big change price . i mean a long candle but i will work on this problem .

alm0ra commented 2 years ago

@Ramblingjack if you like the project please give a star and tell others about this project . thanks

Ramblingjack commented 2 years ago

have already been doing the 2nd one, will do the first.