Latest
Hot
Hi,
I just want to check my RSI has increased from the previous period. How do I do so?
Currently, the comparison is based on:-
- Golden Cross
- Death Cross
- Top Divergence
- Bottom Divergence.
Is there a function for it?
Thanks!
I just want to check my RSI has increased from the previous period. How do I do so?
Currently, the comparison is based on:-
- Golden Cross
- Death Cross
- Top Divergence
- Bottom Divergence.
Is there a function for it?
Thanks!
2
I can't find the Stop-Loss card, anyone has any idea?
hello i want to use DMA but vant see the 3 free strategies after i click ALGO
2
I'm developing a quantitative trading strategy using the moomoo client's quantitative strategy platform. I've encountered an issue when trying to save and load the strategy state. The log shows an error: 'ERROR: Unexpected error while saving strategy state: Open file for writing is forbidden: strategy_state.json'.
Is file read/write operations not allowed in moomoo's quantitative strategy en...
Is file read/write operations not allowed in moomoo's quantitative strategy en...
1
Hi, am I able to use the DMI indicator in the condition card? Thanks.
2
hi there! i love moomoo algo. it is a lot of fun to backtest strategies.
i am working on a futures trading algorithm and i am having some trouble placing a limit order on the contracts.
here's what's happening:
given
Backtesting Account - Futures account selected
when
i run a backtest with
place_limit(symbol=Contract('US.NVDA241115C130000'), ...)
then
i receive
"The account cannot trade this contract"
if i use the securities account i receive
"Unavailable to trade"
normal symbol ...
i am working on a futures trading algorithm and i am having some trouble placing a limit order on the contracts.
here's what's happening:
given
Backtesting Account - Futures account selected
when
i run a backtest with
place_limit(symbol=Contract('US.NVDA241115C130000'), ...)
then
i receive
"The account cannot trade this contract"
if i use the securities account i receive
"Unavailable to trade"
normal symbol ...
3
I signed up for moomoo thinking I could use its API to perform Algo trading but now I see they no longer support their API . Is it just me having this issue? How do you guys perform algo trading
2
I see we can add multiple trigger symbols to one strategy. When the event is triggered, the event is logged in the running log. I didn't find a way to print which symbol(in my case which stock) is this event triggered for. Anyone has any idea? Thanks.
I tried to define a global variable to a symbol and throught I can assign to the triggered symbol in the code after the condition is triggered but it doesn't have this option
I tried to define a global variable to a symbol and throught I can assign to the triggered symbol in the code after the condition is triggered but it doesn't have this option
2
6
I have tested the code to do place buy orders and backtested the code. It works on entering new buy positions. However, when I try to use liquidate these buy positions, it does not work on backtest. Is it not possible to backtest closing positions? Do I use liquidate or do I use sell orders to close these positions?
1
1
Hello, I am new here. How to remove one of my own strategies?
1
2
102627090 OP : // Function to calculate RSI (implementation depends on your platform) function calculateRSI(period, data):
// RSI calculation logic here return rsi_value
// Main logic
period = 14
upper_threshold = 70
lower_threshold = 30
// Get the closing prices for the last 16 candles (14 + 2 extra for comparison) close_prices = getLastNClosingPrices
// Calculate RSI for the current candle and two candles ago
current_rsi = calculateRSI(period, close_prices
rsi_two_candles_ago = calculateRSI(period, close_prices
// Check if RSI has increased
rsi_increased = current_rsi > rsi_two_candles_ago
if rsi_increased: print("RSI has increased from two candlesticks ago")
else: print("RSI has not increased from two candlesticks ago")
ssssdddd : If you look in the Algo manual (the button to the right on top of the code editor) and click Signal -> Technical Analysis -> RSI then you can see how to use the provided one.
It may also be easier for you to track the previous RSI state in a global variable (or maybe this is just my preference). Check the global variable against the current value and then reassign the variable so that next pass it will be the previous value.