|
RSI: using assign |
myo
|
Post subject: RSI: using assign |
Post rating: 0
|
Posted: Tue 01 Oct, 2013, 22:13
|
|
User rating: 1
Joined: Mon 05 Aug, 2013, 22:37 Posts: 33 Location: SwitzerlandSwitzerland
|
Dear fellow vjforexers and the support team, I am learning to use "assign" to control trade. In the attached simple RSI example, a position is to open only one at a time. Short: when RSI => 70 (to close when price reaches 30) Long: when RSI <= 30 (to close when price reaches 70) The below pic is a correct behaviour:  To tackle the divergence issues, I try to assign some sort of a filter. After a short position is opened, RSI goes back towards 30. Before reaching 30 and if it comes back to 70 after passing through 60, the position is to be closed. Somehow I could not create the intended filter and ended up created multiple positions like below.  My attachments exceed the limit... so will attach the vfs in the next post. Many thanks,
Attachments: |
File comment: Position to be closed when RSI does reach 30 but returns to 70 after passing through 60
MultipleOpenNClose.PNG [66.64 KiB]
Downloaded 640 times
|
File comment: Simple RSI: short when RSI=>70 and close when RSI <=30
Correct.PNG [55.73 KiB]
Downloaded 676 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
myo
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Tue 01 Oct, 2013, 22:15
|
|
User rating: 1
Joined: Mon 05 Aug, 2013, 22:37 Posts: 33 Location: SwitzerlandSwitzerland
|
Here comes the vfs.
Attachments: |
AssignTest.vfs [44.25 KiB]
Downloaded 221 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
myo
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Fri 04 Oct, 2013, 06:19
|
|
User rating: 1
Joined: Mon 05 Aug, 2013, 22:37 Posts: 33 Location: SwitzerlandSwitzerland
|
Hi everyone out there.. Any help on this? I tried a number of variations and it does not work yet. Thanks
|
|
|
|
 |
vadim_berezhnoj
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Fri 04 Oct, 2013, 13:29
|
|
Visual JForex expert at Dukascopy |  |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
Greetings.
It's not realy clear about divergense filter. Can you provide formulas, and I'll try to fix it.
|
|
|
|
 |
myo
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Fri 04 Oct, 2013, 23:26
|
|
User rating: 1
Joined: Mon 05 Aug, 2013, 22:37 Posts: 33 Location: SwitzerlandSwitzerland
|
Hi Vadim, Many thanks for your pledge to rescue my mess!
Buy when RSI => 70 Close the position when RSI <= 30 (take profit)
In case, the following two conditions take place before the price reaches the take profit point, <= 30, the position is to be closed. There are two conditions to meet before closing and taking the loss.
First Condition: the price has to touch a defined marker, in my example RSI = 60 Second Condition: the price has to touch back the overbought line, RSI = 70 (this will happen after the price passing through RSI 60 and will go back to 70 without reaching 30, a kind of U-turn)
Similarly, Sell when RSI <= 30 Close the position when RSI => 70
Another situation to close a position. First Condition: price touched a marker RSI = 40 Second Condition: price touches back the oversold line, RSI = 30 Both conditions are to be met for a position closure.
Not sure if I explained it well. Please let me know if you need more clarifications. and thankssssss
|
|
|
|
 |
vadim_berezhnoj
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Tue 08 Oct, 2013, 12:00
|
|
Visual JForex expert at Dukascopy |  |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
Now I get it. But you will face next wired situation: RSI crosses 70 => Open Sell Position RSI crosses 60 and goes back above 70 => Close Sell Position BUT in this situation another Sell position has to be opened. So strategy will Close and Open sell position at one moment. Do you need it?
|
|
|
|
 |
myo
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Tue 08 Oct, 2013, 20:56
|
|
User rating: 1
Joined: Mon 05 Aug, 2013, 22:37 Posts: 33 Location: SwitzerlandSwitzerland
|
Hi Vadim, Yes, it is a desirable action. For me, what is important is to learn to assign a number of conditions and to generate trade signal based on those conditions.
On a separate note, I wonder if there is a pdf version of Visual JForex user guide so that I can print and digest on my bed ;D. It's kind of hard to click and browse through the current online version for me.
Thanks, m
|
|
|
|
 |
myo
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Thu 10 Oct, 2013, 13:48
|
|
User rating: 1
Joined: Mon 05 Aug, 2013, 22:37 Posts: 33 Location: SwitzerlandSwitzerland
|
Hello Vadim, I know you have been busy entertaining Gonzalez and others... Would be very glad if you can guide me through my little problem Thanks..
|
|
|
|
 |
vadim_berezhnoj
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Thu 10 Oct, 2013, 16:17
|
|
Visual JForex expert at Dukascopy |  |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
Sorry for delay. Tomorrow I'll create it from zero.
|
|
|
|
 |
vadim_berezhnoj
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Fri 11 Oct, 2013, 13:24
|
|
Visual JForex expert at Dukascopy |  |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
OK. To check if 40 and 60 levels were touched I used Boolean variables with bunch of IF blocks. Here what we got: download/file.php?mode=view&id=4797It works with one little problem. You'll see it on test chart. Dont know how to fix it yet.
Attachments: |
RSI_new.vfs [45.85 KiB]
Downloaded 344 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
myo
|
Post subject: Re: RSI: using assign |
Post rating: 0
|
Posted: Fri 11 Oct, 2013, 13:35
|
|
User rating: 1
Joined: Mon 05 Aug, 2013, 22:37 Posts: 33 Location: SwitzerlandSwitzerland
|
Lovely! Never thought of using the shift that way... Can't wait to test it tonight.. Thankssssssss,
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|