- Katılım
- 23 Eki 2020
- Mesajlar
- 1,828
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From: Abo Faisal <isuisu2222[at]yahoo.com> To: equismetastock[at]yahoogroups.com <equismetastock[at]yahoogroups.com> Date: Monday, January 30, 2006, 10:34:55 PM Subject: [EquisMetaStock Group] Carrying Target Hello I need your help guys, thanks in advance.. i'm calculating a price profit target based on mat calculation after two moving averages crossed each other. Now i'd like to check if any future price match this price profit target, how and where can i save the target? how can i access in future. Example: at 1-1-2006 a 10 moving average crossed the 50 MA and i decided that the proift target will be the close price*1.15, for example. how can i in future find this target so i can compare it with current close price? Also what will happen if i have multiple targets? Thanks Majed =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From: Jose Silva <josesilva22[at]yahoo.com> To: equismetastock[at]yahoogroups.com <equismetastock[at]yahoogroups.com> Date: Tuesday, January 31, 2006, 2:02:34 AM Subject: [EquisMetaStock Group] Re: Carrying Target Majed, use the MS indicator below as a basis for you target conditions. |
|
Target % { Target based on SMA crossover signals. CCopyright 2006 Jose Silva. For personal use only. http://www.metastocktools.com } { User inputs } pr:=Input("Target %",-100,100,5); pds1:=Input("SMA 1 periods",1,260,5); pds2:=Input("SMA 2 periods",2,2600,21); plot:=Input("plot: [1]Target, [2]Signals", 1,2,1); { SMAs } sma1:=Mov(C,pds1,S); sma2:=Mov(C,pds2,S); { Crossover signal } entry:=Cross(sma1,sma2); { Signal's Close } entryVal:=ValueWhen(1,entry,C); { Target } target:=entryVal*(1+pr/100); { Taget breach signal } exit:=Cross(C,target); { Plot target on price chart } If(plot=1,target,entry-exit) |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From: Abo Faisal <isuisu2222[at]yahoo.com> To: equismetastock[at]yahoogroups.com <equismetastock[at]yahoogroups.com> Date: Thursday, February 2, 2006, 12:27:26 AM Subject: [EquisMetaStock Group] Re: Carrying Target Hi Thanks What i can do to plot target achived only when i hit the target at the first time? if the condition is applied next day or later i do not want to plot. This logic will keep ploting every time ,, Any smart idea? | |
| |
Source / From: |