Thanks for you reply.
I know that I should implement this by using observer class, but i don't know how.
I want to plot only buy/sell pairs that those corresponding trade is positive.
Latest posts made by siavash
-
RE: showing only specific orders on the plot
-
showing only specific orders on the plot
How can I show only specific bracket orders( having specified condition in the code) on the plot? For example, showing only bracket orders having positive result.
-
Recording related data of trading
I want to record some information of candles(for example 5 candles) and then send an order.After that the result of order and the corresponding trade was obtained, add that to the saved related candles that base on I did the trade. It should be mentioned that it might be several positions in same time and also I want do this for the remaining data. How can I code this? is there any example to help me?
-
RE: setting min period inside the strategy
@backtrader
How can I skip. I dont know how?
I want to record 10 candles data and then send an order and save corresponding result in a text file. Also do this for remaining data. Could you please write code for help?🙏 -
RE: setting min period inside the strategy
I didn't understand your answer. What is time cosuming?????!!!! I mean that is there better way to set min period rather than using date time.
-
RE: setting min period inside the strategy
I want to use for example 10 first candles inside the next method and after that sending order. I know that I can check date time inside the next method but it is so time consuming.
-
setting min period inside the strategy
Hello,
How can I set the first start candle inside the strategy. I found that this is done by setminperiod(minperiod) method. But I don't know how to set that inside a strategy. -
custom sizer class
I am going to apply money management by coding custom sizer.How can I get first set cash in middle of back-testing?and also a variable defined in the outer function from inside of the sizer class?
-
RE: Plotting problem
You're right. I have added buy/sell observer by code.I want only buy/sell triangles on the plot, so i have added it by the code. How can I apply default configurations?
Thanks a lot. -
Plotting problem
I have a problem in plotting buy/sell triangles.As it was shown on the plot, triangles are under candles.How can I solve this problem:(
link url)