Wysiwyg
Everyone wants money
- Joined
- 8 August 2006
- Posts
- 8,428
- Reactions
- 284
To use these indicators, create new indicators with appropriate names and load the supplied code into them.
Got it now. Just had to read the instruction. Plot on chart.I don't understand. The ATR trailing stop plot is to close a trade (as in formula backtest) not an indicator.
For riding a trend I would use the ATR trailing stop later as the trend matures or in other words not from trade open. Much prefer to use S/R levels initially to avoid missing a good chunk of the trend and/or choosing to re-enter.Haven't had a chance to mess with the stop plot yet but I imagine it will involve putting the dll file in the amibroker plugin folder and in the formula editor loading the .afl indicator from the zip file you want. Then applying the indicator.
1 - right click on the chart that has the GP Plot (can drag plot onto chart).Does anyone have GP's Short version of the trailing stop. I've got the original one working fine but also want one to use for short trades?
Thanks,
Matt
1 - right click on the chart that has the GP Plot (can drag plot onto chart).
2 - left click on"parameters" at the top of the window that opened.
3 - the "parameters" window opens and see at number 4. Short = 0, Long = 1?
4 - left click the space alongside 4. Short = 0, Long = 1? and a slider will appear.
5 - slide it to 0 for Short.
You're welcome and leave the money on the fridge.
These are the seven parameters poster Great Pig had in his original code. You don't have #4 which is "isLong"
pfId = Param("1. Portfolio Number?", -1, -1, 255, 1);
mul = Param("2. Multiplier?", 3, 0.1, 10, 0.1);
period = Param("3. Period?", 14, 1, 100, 1);
isLong = Param("4. Short=0, Long=1?", 1, 0, 1, 1) != 0;
doSl = Param("5. Plot as Stop/Loss?", 1, 0, 1, 1);
barr = Param("6. Start array (0=L/H, 1=C)?", 1, 0, 1, 1);
earr = Param("7. Sell array (0=L/H, 1=C)?", 1, 0, 1, 1);
These are the seven parameters poster Great Pig had in his original code. You don't have #4 which is "isLong"
PHP:pfId = Param("1. Portfolio Number?", -1, -1, 255, 1); mul = Param("2. Multiplier?", 3, 0.1, 10, 0.1); period = Param("3. Period?", 14, 1, 100, 1); isLong = Param("4. Short=0, Long=1?", 1, 0, 1, 1) != 0; doSl = Param("5. Plot as Stop/Loss?", 1, 0, 1, 1); barr = Param("6. Start array (0=L/H, 1=C)?", 1, 0, 1, 1); earr = Param("7. Sell array (0=L/H, 1=C)?", 1, 0, 1, 1);
Is it the 64bit version casing the problem?
Not sure if GP is still around but you may be able to recompile the plugin for 64 bit application if GP wants to release the source code.[FONT=Arial, Helvetica, sans-serif]Limitations:[/FONT]
- [FONT=Arial, Helvetica, sans-serif]old 32 bit plugins do not work with 64 bit applications[/FONT]
Sorry pav for no reply. I dropped out of the game back then. Have gone 64 bit and cannot use any 32 bit Amibroker direct link library nor know how to change them to 64 bit. :frown:Ok that makes sense. I made the changes in the formula and it now shows up in parameters. I clicked on the graph again however and it is still only going long. It doesn't seem to matter whether I select 0 or 1. Any thoughts?
I have been looking but I found out I don't know where to look. From information I have gathered I think the .dll has to be decompiled but from there I don't know the format/runtime/.NET or whatever has to be changed.Yeh, 32 bit plugins wont work with 64 bit Amibroker.
Not sure if GP is still around but you may be able to recompile the plugin for 64 bit application if GP wants to release the source code.
What's the advantage of a plugin over say...? https://www.wisestocktrader.com/indicators/990-atr-based-trailing-stop-for-amibroker-aflI want to convert this plugin to 64bit. Any objections please lodge them now including the original author.
Thanks.
Yes I am sure it possibly could be done in native AFL but it isn't like that wise stock trader one. The long trailer stays either long or short and doesn't swing over.
The authors original intent and I like it was to click on the chart a trade entry bar to start the trailing stop(s). The trail for long, short, multiplier, range etc. is set in Parameters window. The trail stays whatever the setting as in these chart shots and doesn't switch long to short or turn down for long or up for short.
What's the advantage of a plugin over say...? https://www.wisestocktrader.com/indicators/990-atr-based-trailing-stop-for-amibroker-afl
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?