What kind of actions can be setup on a Path?

A connection between any two blocks on Mudrex is called a 'PATH'. Paths help users create complex strategies using simple conditions.

Paths that are connected to the BUY/SELL block are special paths because those are the final leg in the decision-making process of the strategy.  Users can use these paths to define complex entry/exit actions based on the condition.

mceclip0.png

Paths that connect to the BUY block or the SELL block have different options associated with them. 

Actions on paths connected with BUY:

3 actions are available to a user when a path is connected with the BUY block

- Open Long Position: When conditions connected to this path are true, the strategy opens a Long position if no other position is open

- Close Short Position: When conditions connected to this path are true, the strategy closes any open Short position.

- Reverse open Short to Long: When conditions connected to this path are true, the strategy first closes any open Short position and then reverses that position to a Long position.

mceclip0.png

Actions on paths connected with Sell:

3 actions are available to a user when a path is connected with the SELL block

- Open Short Position: When conditions connected to this path are true, the strategy opens a Short position if no other position is open and shorting is allowed

- Close Long Position: When conditions connected to this path are true, the strategy closes any open Long position.

- Reverse open Long to Song: When conditions connected to this path are true, the strategy first closes any open Long position and then reverses that position to a Short position if shorting is allowed.

mceclip1.png


A user can select multiple actions to be taken on the same Path. 

Using it in a strategy:

Eg:

Let us create a strategy with the following condition

- Enter Long when RSI < 30 always
- Enter Short when RSI > 70 always

- If MACD crosses down 0 then close any open long positions
- IF MACD crosses up 0 then close any open short positions

Here is how we would create it:

 

Buy Side: We need 2 indicator blocks, one with RSI to open the Long and another with MACD to close any open Short position

Sell Side: We need 2 indicator blocks, one with RSI to open the Short and another with MACD to close any open Long position

Here is how the strategy would look:

mceclip2.png


Here are some quick results:

mceclip3.png

 

Build your strategies without breaking a sweat, only with our no-code visual strategy builder.

Start with Mudrex today!

 

 

 

 

Was this article helpful?
5 out of 5 found this helpful