--------------------------------------------
On Wed, 3/2/16, reinsley reinsley@yahoo.fr [amibroker] <amibroker@yahoogroups.com> wrote:
Subject: Re: [amibroker] carry buyprice or shortprice forward
To: amibroker@yahoogroups.com
Date: Wednesday, March 2, 2016, 12:07 AM
I've a trade delay,
SetTradeDelays(1,0,1,0);
buy= buysig;
buyprice=open;
bbars=barssince(buy);
bPrice=ref(open,bbars -1);
Hi R
The confusion came from a trade delay.... I got it now.
norm
hello,
Did you try that ?
// Price bought at BuyPrice
PriceBought = ValueWhen(Buy, BuyPrice );
Plot( PriceBought , "BP ", colorYellow, styleLine
);
// To keep trace of all buyprice ( fx gave a loop)
https://groups.yahoo.com/neo/groups/amibroker/conversations/messages/179996
Best regards
Le 01/03/2016 19:11, normer dude coblehill@yahoo.com
[amibroker] a écrit :
> Hello
> I seem to have found a blonde moment. I am not able to
carry (store) forward either my buyprice or shortprice for
later use. That is when I have my day and buyprice the value
keeps changing as I move the cursor forward. I want it stay
the same ... until, in this case, I have my sell or short
condition....
> Good day and thanks
> norm
>
>
> ------------------------------------
> Posted by: normer dude <coblehill@yahoo.com>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be
considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always
check DEVLOG:
> http://www.amibroker.com/devlog/
>
>
> ------------------------------------
>
> Yahoo Groups Links
>
>
>
>
#yiv8883123556 #yiv8883123556 --
#yiv8883123556ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px
0;padding:0 10px;}
#yiv8883123556 #yiv8883123556ygrp-mkp hr {
border:1px solid #d8d8d8;}
#yiv8883123556 #yiv8883123556ygrp-mkp #yiv8883123556hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px
0;}
#yiv8883123556 #yiv8883123556ygrp-mkp #yiv8883123556ads {
margin-bottom:10px;}
#yiv8883123556 #yiv8883123556ygrp-mkp .yiv8883123556ad {
padding:0 0;}
#yiv8883123556 #yiv8883123556ygrp-mkp .yiv8883123556ad p {
margin:0;}
#yiv8883123556 #yiv8883123556ygrp-mkp .yiv8883123556ad a {
color:#0000ff;text-decoration:none;}
#yiv8883123556 #yiv8883123556ygrp-sponsor
#yiv8883123556ygrp-lc {
font-family:Arial;}
#yiv8883123556 #yiv8883123556ygrp-sponsor
#yiv8883123556ygrp-lc #yiv8883123556hd {
margin:10px
0px;font-weight:700;font-size:78%;line-height:122%;}
#yiv8883123556 #yiv8883123556ygrp-sponsor
#yiv8883123556ygrp-lc .yiv8883123556ad {
margin-bottom:10px;padding:0 0;}
#yiv8883123556 #yiv8883123556actions {
font-family:Verdana;font-size:11px;padding:10px 0;}
#yiv8883123556 #yiv8883123556activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}
#yiv8883123556 #yiv8883123556activity span {
font-weight:700;}
#yiv8883123556 #yiv8883123556activity span:first-child {
text-transform:uppercase;}
#yiv8883123556 #yiv8883123556activity span a {
color:#5085b6;text-decoration:none;}
#yiv8883123556 #yiv8883123556activity span span {
color:#ff7900;}
#yiv8883123556 #yiv8883123556activity span
.yiv8883123556underline {
text-decoration:underline;}
#yiv8883123556 .yiv8883123556attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px
0;width:400px;}
#yiv8883123556 .yiv8883123556attach div a {
text-decoration:none;}
#yiv8883123556 .yiv8883123556attach img {
border:none;padding-right:5px;}
#yiv8883123556 .yiv8883123556attach label {
display:block;margin-bottom:5px;}
#yiv8883123556 .yiv8883123556attach label a {
text-decoration:none;}
#yiv8883123556 blockquote {
margin:0 0 0 4px;}
#yiv8883123556 .yiv8883123556bold {
font-family:Arial;font-size:13px;font-weight:700;}
#yiv8883123556 .yiv8883123556bold a {
text-decoration:none;}
#yiv8883123556 dd.yiv8883123556last p a {
font-family:Verdana;font-weight:700;}
#yiv8883123556 dd.yiv8883123556last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}
#yiv8883123556 dd.yiv8883123556last p
span.yiv8883123556yshortcuts {
margin-right:0;}
#yiv8883123556 div.yiv8883123556attach-table div div a {
text-decoration:none;}
#yiv8883123556 div.yiv8883123556attach-table {
width:400px;}
#yiv8883123556 div.yiv8883123556file-title a, #yiv8883123556
div.yiv8883123556file-title a:active, #yiv8883123556
div.yiv8883123556file-title a:hover, #yiv8883123556
div.yiv8883123556file-title a:visited {
text-decoration:none;}
#yiv8883123556 div.yiv8883123556photo-title a,
#yiv8883123556 div.yiv8883123556photo-title a:active,
#yiv8883123556 div.yiv8883123556photo-title a:hover,
#yiv8883123556 div.yiv8883123556photo-title a:visited {
text-decoration:none;}
#yiv8883123556 div#yiv8883123556ygrp-mlmsg
#yiv8883123556ygrp-msg p a span.yiv8883123556yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}
#yiv8883123556 .yiv8883123556green {
color:#628c2a;}
#yiv8883123556 .yiv8883123556MsoNormal {
margin:0 0 0 0;}
#yiv8883123556 o {
font-size:0;}
#yiv8883123556 #yiv8883123556photos div {
float:left;width:72px;}
#yiv8883123556 #yiv8883123556photos div div {
border:1px solid
#666666;height:62px;overflow:hidden;width:62px;}
#yiv8883123556 #yiv8883123556photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}
#yiv8883123556 #yiv8883123556reco-category {
font-size:77%;}
#yiv8883123556 #yiv8883123556reco-desc {
font-size:77%;}
#yiv8883123556 .yiv8883123556replbq {
margin:4px;}
#yiv8883123556 #yiv8883123556ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}
#yiv8883123556 #yiv8883123556ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean,
sans-serif;}
#yiv8883123556 #yiv8883123556ygrp-mlmsg table {
font-size:inherit;font:100%;}
#yiv8883123556 #yiv8883123556ygrp-mlmsg select,
#yiv8883123556 input, #yiv8883123556 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}
#yiv8883123556 #yiv8883123556ygrp-mlmsg pre, #yiv8883123556
code {
font:115% monospace;}
#yiv8883123556 #yiv8883123556ygrp-mlmsg * {
line-height:1.22em;}
#yiv8883123556 #yiv8883123556ygrp-mlmsg #yiv8883123556logo {
padding-bottom:10px;}
#yiv8883123556 #yiv8883123556ygrp-msg p a {
font-family:Verdana;}
#yiv8883123556 #yiv8883123556ygrp-msg
p#yiv8883123556attach-count span {
color:#1E66AE;font-weight:700;}
#yiv8883123556 #yiv8883123556ygrp-reco
#yiv8883123556reco-head {
color:#ff7900;font-weight:700;}
#yiv8883123556 #yiv8883123556ygrp-reco {
margin-bottom:20px;padding:0px;}
#yiv8883123556 #yiv8883123556ygrp-sponsor #yiv8883123556ov
li a {
font-size:130%;text-decoration:none;}
#yiv8883123556 #yiv8883123556ygrp-sponsor #yiv8883123556ov
li {
font-size:77%;list-style-type:square;padding:6px 0;}
#yiv8883123556 #yiv8883123556ygrp-sponsor #yiv8883123556ov
ul {
margin:0;padding:0 0 0 8px;}
#yiv8883123556 #yiv8883123556ygrp-text {
font-family:Georgia;}
#yiv8883123556 #yiv8883123556ygrp-text p {
margin:0 0 1em 0;}
#yiv8883123556 #yiv8883123556ygrp-text tt {
font-size:120%;}
#yiv8883123556 #yiv8883123556ygrp-vital ul li:last-child {
border-right:none !important;
}
#yiv8883123556
Posted by: normer dude <coblehill@yahoo.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
EmoticonEmoticon