Need key information on writing my simple strategy

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Need key information on writing my simple strategy

Postby csshine » Tue Dec 04, 2018 7:00 am

Dear all,
I have a plan to writing a strategy on candles deviate with RSI indicator. It is always been called bull deviation of bear deviation. I want the strategy to work on m5 timeframe.
I have some key point not solved. For example:
1. How to get RSI indicator stream, the past and live data
2. how to get candles stream, the past and live data in form of core.bar
3. how to writing compare expression with RSI and candles for deviation? like
if (RSI[period] > RSI[period -1] and RSI[period -1] > 80 and candle.high[period] < candle.high[period -1 ]){
enter(SALE);
}
upside is what I think of writing a correct strategy. Could any body help me?
Appreciate your help in advance!
csshine
 
Posts: 12
Joined: Wed Nov 28, 2018 6:16 am

Re: Need key information on writing my simple strategy

Postby Apprentice » Thu Dec 06, 2018 5:54 am

The simplest way would be, to write this strategy for you.
Can you define all the conditions?

You can use RSI_Strategy.lua as a template.
viewtopic.php?f=31&t=2828&hilit=rsi

Maybe you can learn from the code.

For interested, I hold private lessons.
However, it seems to me, you are not the best candidate.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Need key information on writing my simple strategy

Postby csshine » Thu Dec 06, 2018 10:52 am

Apprentice wrote:The simplest way would be, to write this strategy for you.
Can you define all the conditions?

You can use RSI_Strategy.lua as a template.
viewtopic.php?f=31&t=2828&hilit=rsi

Maybe you can learn from the code.

For interested, I hold private lessons.
However, it seems to me, you are not the best candidate.


Thanks for your important suggestion. I think it's better to write the strategy by you and I learn rather than discuss the principle here.

Here below is the conditions:
leverage:
1. can be set from 1~100 and trading amount is based on the leverage.
For bull deviation:
1. timeframe is 5 minutes
2. start following calculation when RSI level is more than 80
3. RSI[lastestfinished TF] > RSI[lastestFinished TF - 1]
4. candle.hight[lastestfinished TF] < candle.high[lastestFinished TF - 1]
5. if 2,3,4 are satisfied on m5 TF, open a sell trade and set trailing step stop of 15pips(where 8 could be configure when start the strategy). set the flag isTrading to true.
6. if isTrading is true, ignore checking 2,3,4 in next tick.
For bear deviation:
1. timeframe is 5 minutes
2. start following calculation when RSI level is less than 20
3. RSI[lastestfinished TF] < RSI[lastestFinished TF - 1]
4. candle.hight[lastestfinished TF] > candle.high[lastestFinished TF - 1]
5. if 2,3,4 are satisfied on m5 TF, open a buy trade and set trailing step stop of 15pips(where 8 could be configure when start the strategy). set the flag isTrading to true.
6. if isTrading is true, ignore checking 2,3,4 in next tick.
For close position of the trade:
1. set limit to 50pips
2. using trailing step stop to check out
3. when close, set isTrading to false.

It's the conditions. Could you help to write a strategy for it? Thank you in advance!
csshine
 
Posts: 12
Joined: Wed Nov 28, 2018 6:16 am

Re: Need key information on writing my simple strategy

Postby Apprentice » Fri Dec 07, 2018 5:55 am

Your request is added to the development list under Id Number 4348
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Need key information on writing my simple strategy

Postby csshine » Tue Dec 11, 2018 11:02 pm

Dear, is there any update on this request? Thank you very much for your help!
csshine
 
Posts: 12
Joined: Wed Nov 28, 2018 6:16 am

Re: Need key information on writing my simple strategy

Postby Apprentice » Wed Dec 12, 2018 7:36 am

Unfortunately no.
Ivan is committed to this task.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Need key information on writing my simple strategy

Postby csshine » Wed Dec 12, 2018 12:13 pm

OK. Waiting for the update. Thank you~
csshine
 
Posts: 12
Joined: Wed Nov 28, 2018 6:16 am



Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Majestic-12 [Bot] and 20 guests