| 
|  | Barbecue 2016-02-29 21:57:00
 
 
 
 |  | 
	 Hi !How can I plot an ATR stop using points ?
 
 I want to get this to the chart: SetSimStop(_StopLoss, _Point, ops0 * atr(ops1), 1);
 
 Thanks !
 
 
 
 |  |  | 
| 
|  | QuantShare 2016-03-01 02:59:49
 
 
  0   
 
 |  | 
	 This is to place a stop in a strategy, you cannot use it in a chart.
      
 
 
 |  |  | 
| 
|  | Barbecue 2016-03-01 06:09:12
 
 
  0   
 
 |  | 
	 What I want to do is to draw the ATR stop line in the chart. I want to see the ATR stop line.
 What is the proper way to code it ?
 
 I was trying this but it doesn't match stop exits from the system:
 
 today = close;
 yesterday = today[1];
 a = 3 * Atr(9);
 b = yesterday - a;
 Plot(b, "ATR_STOP", colorRed, chartLine, StyleDashed);
 
 Thanks !
 
 
 
 |  |  | 
| 
|  | QuantShare 2016-03-02 08:45:32
 
 
  0   
 
 |  | 
Best Answer
 It doesn't match because the calculation is based on the entry price.
 a = [entry price] - 3*atr(9); // Entry price must be hard coded. Example: 10.2 - 3*atr(9)
 plot(a, "");
 
 
 
 |  |  | 
| 
|  | Barbecue 2016-03-02 13:11:18
 
 
  0   
 
 |  | 
	 Thank you, that's what I was looking for. 
 It would be great for troubleshooting backtesting to have the ATR stop line charted for each trade.
 
 Is there a way to see for each stock added to a Porfolio plugin the current value of the stop loss  ?
 
 Thanks !
 
 
 
 |  |  | 
| 
|  | QuantShare 2016-03-03 02:41:09
 
 
  0   
 
 |  | 
	 Yes, there is. 
 Right click on the table in the "Open Positions" tab:
 
 - You can add the $ amount until the stop is hit by selecting "Update Columns" then checking "$ To Stop"
 - You can display the ATR stop value by selecting "Add Formula Columns" then adding the following formula:
 [PRICE] - 3*atr(9)
 
 // NB: Do not update [PRICE], keep it like that, it will be replaced automatically with the correct entry price.
 
 
 
 |  |  | 
| 
|  | Barbecue 2016-03-03 09:10:45
 
 
  0   
 
 |  | 
	 Thank you !
      
 
 
 |  |  | 
| 
 |